UNPKG

photocopy

Version:

Iterate anything and return a modified copy.

13 lines (9 loc) 218 B
var reduce = require('universal-reduce') module.exports = done function done (acc, value, key) { return ( (typeof value === 'undefined' && typeof key === 'undefined') || (reduce.isReduced(acc)) ) }