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

Return values

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'

Comments

Neal

Hi there! Such a great post, thank you!

Marti

Your website has excellent material. I bookmarked the website

Teddy

Could you tell me what style are you utilizing on your website?

It looks great.