7685 Commits

Author SHA1 Message Date
shinuza
5141a51298 Refactored fix as suggested in
https://github.com/documentcloud/underscore/issues/177
2011-05-07 16:29:43 +02:00
shinuza
899000c217 Hashmap keys are not necessarily ordered. groupBy test may fail if the
expected order is not correct.
Fixing this by checking if the keys are present in the hash so
the order is not deterministic.
2011-05-07 12:03:02 +02:00
shinuza
6846d71f88 Fixing _.any returning an incorrect result when Array.prototype.some is
missing but Array.prototype.forEach exists.
2011-05-07 11:24:05 +02:00
Jeremy Ashkenas
961f554767 Merge pull request #195 from ascheink/master
Added _.groupBy
2011-05-05 11:45:28 -07:00
Andrei
1681d25063 in groupBy, also pass index to iterator. 2011-05-05 14:43:28 -04:00
Andrei
b75e48c057 cleaned up key check in groupBy 2011-05-05 14:31:40 -04:00
Andrei
f8a4b78a86 Adding groupBy. 2011-05-05 14:00:40 -04:00
Alfredo Mesen
b9307163b9 Add optional iterator to _.uniq 2011-05-03 21:16:57 -06:00
Danny Tatom
efa717b09e Should be 'A convenient,' not 'An convenient' 2011-05-03 17:29:21 -07:00
Jeremy Ashkenas
a3b8f9edb1 Merge branch 'master' into gh-pages 2011-04-24 11:41:45 -04:00
Jeremy Ashkenas
c174663ea3 fixing docs for 'all' 2011-04-24 11:41:31 -04:00
Jeremy Ashkenas
bf87d8997c 1.1.6 + min 2011-04-18 09:09:25 -04:00
Jeremy Ashkenas
b617615819 Underscore.js 1.1.6 2011-04-18 09:08:52 -04:00
Jeremy Ashkenas
13d4e626a8 removing obsolete _.after test. 2011-04-15 18:02:51 -04:00
Jeremy Ashkenas
6f25ccae31 michaelficarra's proposed tweak to _.after 2011-04-15 18:01:53 -04:00
Jeremy Ashkenas
ea44179d81 Issue #123. _.extend shouldn't copy keys for undefined values. 2011-04-15 17:46:16 -04:00
Jeremy Ashkenas
bf214d2c8d stricter ECMA5 compliance. _.every now requires an iterator to be passed. #160 2011-04-15 17:17:54 -04:00
Jeremy Ashkenas
3df562f07e tweaking invoke implementation 2011-04-15 17:00:37 -04:00
Jeremy Ashkenas
8f67aa3f18 _.barrier -> _.after, switch the order of arguments ... fix test formatting. 2011-04-15 16:17:58 -04:00
Jeremy Ashkenas
c7b47edd2f merging in barrier ... soon to be after 2011-04-15 16:13:51 -04:00
Jeremy Ashkenas
b6c39fec74 Merge branch 'master' of github.com:documentcloud/underscore 2011-04-15 16:09:54 -04:00
Jeremy Ashkenas
5e051fb0ed from now on, to avoid confusion, underscore-min will only be in gh-pages. 2011-04-15 16:09:44 -04:00
Sam Gentle
217a6a6a63 _.barrier + tests 2011-04-14 07:19:05 +10:00
Samuel Clay
1fc7d4b049 Revert "Adding _.count to count truthy values in an iterator. _.count([1, 2, 3, 4, 5, 6], function(num){ return num % 2 == 0; }) = 3"
This reverts commit c8e3c04076.

Conflicts:

	underscore.js
2011-04-06 09:03:40 -04:00
Samuel Clay
5457522582 Speeding up a few methods which assign a default identity function for missing/optional iterators. Noticeable difference. 2011-04-05 18:11:20 -04:00
Samuel Clay
c8e3c04076 Adding _.count to count truthy values in an iterator. _.count([1, 2, 3, 4, 5, 6], function(num){ return num % 2 == 0; }) = 3 2011-04-05 18:09:47 -04:00
aseemk
3f512c2495 Add support for _.invoke() to take function reference. 2011-03-25 12:35:11 -07:00
Aseem Kishore
de50fc4607 Add test case for invoke w/ function reference. 2011-03-25 12:06:10 -07:00
Jeremy Ashkenas
a9ac8b11f8 Documenting zip as transpose. Issue #161 2011-03-25 09:46:28 -04:00
Jeremy Ashkenas
6d4b76705d we're reserving nativeBind ... we should be actually using it. 2011-03-22 15:48:09 -04:00
Jeremy Ashkenas
2498bccb50 changing order of operations to force an errror when _.bind -ing null or undefined values. 2011-03-22 10:44:07 -04:00
Jeremy Ashkenas
c5ba702542 Underscore.js 1.1.5 2011-03-20 20:20:08 -04:00
Jeremy Ashkenas
065dcbb27b Documenting _.once 2011-03-20 20:02:52 -04:00
Jeremy Ashkenas
39119065dc Adding _.once ... Issue #121 2011-03-20 19:32:20 -04:00
Jeremy Ashkenas
52916aad87 Merge branch 'master' of https://github.com/TrevorBurnham/underscore 2011-03-20 19:26:52 -04:00
Jeremy Ashkenas
dfaf6a3c65 s/Packed/Minified. Issue #136 2011-03-20 19:06:56 -04:00
Jeremy Ashkenas
d71f4808c1 Issue #137. Docs for memoize. 2011-03-20 19:05:03 -04:00
Jeremy Ashkenas
866cd35236 merging in michaelficarra's issue95 2011-03-20 18:50:56 -04:00
Jeremy Ashkenas
25457982a8 new version of qunit ... fixing up tests. 2011-03-20 18:21:49 -04:00
Kit Goncharov
48abcd84c5 Issue #149: _.keys should throw a TypeError for non-objects. 2011-03-20 10:08:32 -06:00
Kit Goncharov
4869b4c6ca Issue #150: _.bind should allow binding functions to falsy values. 2011-03-20 09:36:44 -06:00
Michael Ficarra
1f2c9c5fc1 added regression test for issue #95 2011-03-04 10:15:48 -05:00
Jeremy Ashkenas
59ef91ee80 making interpolate/evaluate more clear. 2011-02-28 11:36:14 -05:00
Jeremy Ashkenas
513d322525 Merging in the native bind branch. 2011-02-28 10:54:12 -05:00
Jeremy Ashkenas
85460fef61 Merge branch 'master' of https://github.com/AdmCrvn/underscore 2011-02-28 10:52:56 -05:00
Jeremy Ashkenas
78596866ab merging maw's doc patch. 2011-02-28 10:44:45 -05:00
Adam Craven
095400d094 Use existing alias for function bind. 2011-02-22 13:43:39 +01:00
Adam Craven
b65d647de8 updated bind method to stop un-needed variable assignment when using native method. 2011-02-20 22:24:29 +01:00
Adam Craven
468160204d Updated 'bind' documentation to reflect native support. 2011-02-20 21:19:46 +01:00
Adam Craven
ebde2daa4a Updated 'bind' documentation to reflect native support. 2011-02-20 21:07:14 +01:00