Commit Graph

45 Commits

Author SHA1 Message Date
matehat
3c0b7125a7 '_.toArray' now checks whether the iterable object contains a 'toArray' method to delegate to. 2009-11-21 22:02:31 -05:00
Jeremy Ashkenas
ae968a6ea0 Underscore 0.4.5, with first/rest, head/tail, and all Array functions guaranteed to work on 'arguments' objects. Many method implementations reworked to use _.rest() 2009-11-19 09:37:56 -05:00
Luke Sutton
8cac2d5bd7 Add init(), tail() and reverse() Array functions. Alias first() to head(); 2009-11-19 11:07:14 +10:30
Jeremy Ashkenas
c9e46262ab Underscore 0.4.4, with isNumber, isString, and isEqual(NaN, NaN) 2009-11-18 16:09:55 -05:00
Jeremy Ashkenas
b932867dec regression fix: implied global 'i' in _.indexOf() -- thanks to Sveinung Rosaker. 2009-11-14 08:31:42 -05:00
Jeremy Ashkenas
b5e1101610 0.4.3, with fixed export for CommonJS and StopIteration support 2009-11-09 22:17:47 -05:00
Tim Caswell
111f1cbc0d Make the exports system include the wrapper function in node.js 2009-11-09 16:46:34 -06:00
Jeremy Ashkenas
f6e67a5bf2 version 0.4.2 -- quick patch to rename get() to value() for clarity, and adding jQuery comparisons in the speed tests 2009-11-09 08:28:32 -05:00
Jeremy Ashkenas
cb85480659 0.4.1 is out, with array methods proxied for wrapped objects, an _.breakLoop(), and an _.isEmpty() 2009-11-08 14:18:24 -05:00
Jeremy Ashkenas
5eec4e5d22 adding breakLoop 2009-11-08 12:07:10 -05:00
Jeremy Ashkenas
cda4612a00 axeing trailing whitespace 2009-11-08 10:07:56 -05:00
Jeremy Ashkenas
ef35fe1d86 allowing bind with undefined contexts, but with arguments 2009-11-07 23:17:27 -05:00
Jeremy Ashkenas
b5920e94a3 added an isEmpty function that works on arrays and objects 2009-11-07 23:04:18 -05:00
Jeremy Ashkenas
d4f6e1a42f removed _.each support of objects with their own 'each' method -- it was a little bit funky 2009-11-07 22:48:47 -05:00
Jeremy Ashkenas
ed37b9df49 0.4.0 is out, with OOP-style and chaining 2009-11-07 14:29:40 -05:00
Jeremy Ashkenas
4f0afda61c adding OO-style object wrapping (thanks macournoyer) -- now you can to _(array).each(); 2009-11-07 12:39:59 -05:00
Jeremy Ashkenas
d4a5ed6a73 version 0.3.3 is on the books -- with reduceRight 2009-10-31 08:26:03 -04:00
Jeremy Ashkenas
cb38c6ae63 adding a reduceRight (it's in JS 1.8), and aliasing foldl and foldr 2009-10-30 09:40:19 -04:00
Jeremy Ashkenas
d2d1285e26 version 0.3.2, with 'identity', and Rhino support 2009-10-29 14:45:56 -04:00
Jeremy Ashkenas
4d09a85bae version 0.3.1 is on the books 2009-10-29 11:12:41 -04:00
Jeremy Ashkenas
9b1da9b258 optimized keys, values, and pluck 2009-10-29 11:03:53 -04:00
Jeremy Ashkenas
1d8420af00 started passing in 'list' as the third argument to all the iterators in underscore 2009-10-29 10:53:23 -04:00
Jeremy Ashkenas
42637b5880 Issue #2 -- each now calls iterator with (value, key, list) when iterating over javascript objects 2009-10-29 10:46:53 -04:00
Jeremy Ashkenas
8e7b8d2dea started passing in the collection as the third argument to _.each iterators (Issue #1) 2009-10-29 10:26:16 -04:00
Jeremy Ashkenas
e381f7b626 updating docs and minified version for 0.3.0 2009-10-29 00:04:00 -04:00
Jeremy Ashkenas
a82a01ebfc elaborate underscore initialization so that it works seamlessly on CommonJS, as well as in the browser 2009-10-28 23:53:40 -04:00
Jeremy Ashkenas
4f783846de merged in kriskowal's CommonJS branch and Dmitry Baranovskiy's optimizations 2009-10-28 23:21:24 -04:00
Jeremy Ashkenas
8c15ae153a Merge commit 'kriskowal/integration' 2009-10-28 22:50:20 -04:00
Jeremy Ashkenas
2b9a011e07 Merge commit 'DmitryBaranovskiy/master' 2009-10-28 22:45:24 -04:00
Jeremy Ashkenas
f997a17c89 docs typo fix 2009-10-28 22:30:52 -04:00
kriskowal
5026224597 Fixed an object.hasOwnProperty('hasOwnProperty') bug. 2009-10-28 17:16:59 -07:00
Dmitry Baranovskiy
df2742de17 Some little optimisation. 2009-10-29 11:05:45 +11:00
Jeremy Ashkenas
4a83fcdd26 version 0.2.0 is out, with inject -> reduce, JS standard methodname aliases, a compose(), and a lastIndexOf() 2009-10-28 18:49:50 -04:00
Jeremy Ashkenas
6d52832a73 going to version 0.1.1 with noConflict 2009-10-28 12:37:55 -04:00
Jeremy Ashkenas
5ef845a663 changing include to use === instead of == 2009-10-27 15:01:34 -04:00
Jeremy Ashkenas
90e34e1a74 comment edits 2009-10-27 14:45:05 -04:00
Jeremy Ashkenas
ef10906b5f getting ready for 0.1 2009-10-27 13:26:36 -04:00
Jeremy Ashkenas
5e3f783a23 docs done -- going back to code comments 2009-10-27 12:29:24 -04:00
Jeremy Ashkenas
9a881c70cb more and more and more docs ... almost there 2009-10-26 23:09:56 -04:00
Jeremy Ashkenas
25d3177bd7 further along with the HTML documentation 2009-10-26 21:11:19 -04:00
Jeremy Ashkenas
4c41af41e6 first batch of documentation 2009-10-26 16:07:09 -04:00
Jeremy Ashkenas
d229e822e7 added an _.zip() 2009-10-26 09:15:14 -04:00
Jeremy Ashkenas
5c46c60b06 finished off the complete test suite for underscore -- let's polish off the corners and provide some docs 2009-10-26 08:40:14 -04:00
Jeremy Ashkenas
fe7156e4ea first round of tests... 2009-10-25 20:36:28 -04:00
Jeremy Ashkenas
02ede85b53 first underscore.js commit -- pulled out from documentcloud's core.js 2009-10-25 14:36:12 -04:00