UNPKG

istesequi

Version:

Lightweight and intuitive javascript library

11 lines (8 loc) 236 B
/** * Merge all of the nodes that the callback returns */ u.prototype.join = function(callback) { return u(this.nodes.reduce(function(newNodes, node, i){ return newNodes.concat(callback(node, i)); }, [])).unique(); };