Deck.prototype.some >= 0.1.2

Purpose

Iterate over the items in the dictionary, break loop on a returned true

Syntax

Deck#some ( Functionfnc );

Parameters

fnc

Examples

var d = new Deck(),
    result = '';

d.set('a', 'a');
d.set('b', 'b');
d.push('c');
d.push('d');

d.some(function(val) {
	result += val;

	if (result.length == 2) return true;
});
>>> `result` is now 'ab'