UNPKG

@kickscondor/umbrellajs

Version:

Lightweight and intuitive javascript library

9 lines (7 loc) 288 B
// Loops through every node from the current call u.prototype.each = function (callback) { // By doing callback.call we allow "this" to be the context for // the callback (see http://stackoverflow.com/q/4065353 precisely) this.nodes.forEach(callback.bind(this)); return this; };