Deck.prototype.every >= 0.1.2
Purpose
Iterate over the items in the dictionary, break loop on a returned false
Syntax
Deck#every
(
Functionfnc
);
Parameters
fnc
Examples
var d = new Deck(),
result = '';
d.set('a', 'a');
d.set('b', 'b');
d.push('c');
d.push('d');
d.every(function(val) {
result += val;
if (result.length == 2) return false;
});
>>> `result` is now 'ab'
Comments