John-David Dalton
258fc518a6
Add _.isEmpty JScript [[DontEnum]] bug test.
...
Former-commit-id: 3815abeb1d802bd6fc2aada64f7a105aa77a6467
2012-05-12 01:11:54 -04:00
John-David Dalton
04a05b4c02
Cleanup _.max and _.min unit tests.
...
Former-commit-id: 5bfdd6d441f20879f3352f260b9b08e714c7b836
2012-05-10 01:48:20 -04:00
John-David Dalton
b5c4a9241b
Add instance pass through unit test, and ensure the pre-compile step escapes the "_wrapped" property for Closure Compiler.
...
Former-commit-id: 4bb8f77bacdafdd6822564c18751310235679476
2012-05-09 01:43:40 -04:00
John-David Dalton
98435d2d92
Remove debug and tweak template whitespace for pretty printing.
...
Former-commit-id: 1f00899af1210dd367718aad4db38453509747c2
2012-05-08 17:34:13 -04:00
John-David Dalton
ccbf965bd9
Cleanup iterator template, make _.isEqual avoid the JScript [[DontEnum]] bug and add unit tests.
...
Former-commit-id: 1325f2184a8572ba688bcf697892782b8a0972e7
2012-05-08 17:11:32 -04:00
John-David Dalton
9c54df2de5
lodash: Add unit tests for buggy shift and splice in IE. [jddalton]
...
Former-commit-id: 574e4adcd024ef667302e97fffebc9bee5cbfacf
2012-05-06 22:40:58 -04:00
John-David Dalton
f31c2d24f9
lodash: Add the JScript [[DontEnum]] and Firefox, Opera, and Safari "prototype" property iteration fixes to iterationFactory. [jddalton]
...
Former-commit-id: f5be5c1e0828c3850936ba13ce19d0bfb8988d05
2012-05-06 22:16:03 -04:00
John-David Dalton
52cf17b24a
lodash: Ensure max and min do not error when computing the result of massive arrays. [cederberg, jddalton, jeeyoungk]
...
Former-commit-id: af982790c3bb62777523f972a95b7115fb645180
2012-05-06 19:38:15 -04:00
John-David Dalton
d26fc7154c
lodash: Add partial. [ closes #5 ] [gf3, jddalton]
...
Former-commit-id: 7f95e60e93d463aeac936bcf0868fe2cb5494d6e
2012-05-06 19:17:13 -04:00
John-David Dalton
14c8863657
lodash: Add native method overwrite detection and optimize bind for native bind. [jddalton]
...
Former-commit-id: d968957e494fb828df155d2f9b0d3faf24e38b5e
2012-05-06 17:57:39 -04:00
John-David Dalton
2f908870e7
lodash: Cleanup template. [jddalton]
...
Former-commit-id: 286af73ea3a4d798afd4baa01e586ada0305e66b
2012-05-03 10:12:45 -04:00
John-David Dalton
1a1bd5322c
lodash: No longer have escape translate the ">" character. [jddalton, mathiasbynens]
...
Former-commit-id: 58d8ef98f3699a62b57a460b45921785fa2440b0
2012-05-03 00:45:21 -04:00
John-David Dalton
d5e2489cad
lodash: Make deb ounce match throttle's return value behavior. [jddalton]
...
Former-commit-id: 2d4073c8a2ba20b98344c19cbfaf388a2683ef19
2012-05-01 21:13:02 -04:00
John-David Dalton
367f0bd6a9
lodash: Optimize and simplify throttle. [cowboy, jddalton]
...
Former-commit-id: 52e19aeb8671e86a13bf54876bf1f3f1b4644437
2012-05-01 21:11:40 -04:00
John-David Dalton
24d5fbb595
lodash: Add support for "lazy" bind. [jddalton]
...
Former-commit-id: 472c0436f7de4e636dd878900119008bf39592fa
2012-05-01 00:34:40 -04:00
John-David Dalton
313ffb8821
lodash: Add thisArg to groupBy and optimize invoke. [jddalton]
...
Former-commit-id: 74b0105af083471a56d60ac423409ae39e17d44a
2012-04-25 00:08:46 -04:00
John-David Dalton
f9358531ad
lodash: Add support for more AMD build optimizers and allow aliasing as the "underscore" module. [jddalton]
...
Former-commit-id: 6b3fa45d19f6a55aa7565bcb4d9221f6f159e9c9
2012-04-24 18:15:47 -04:00
John-David Dalton
ba8cc970d0
lodash: Move Underscore's unit tests to a submodule. [fat, jddalton]
...
Former-commit-id: c0518256e2ff02386452cd62c81964cc2a3da3cc
2012-04-24 09:03:03 -04:00
John-David Dalton
a56a7e82bd
lodash: Sync with Underscore.js. [jddalton]
...
Former-commit-id: 48fe9e5bdfef0d9fe214f38968e7dd0998505ac7
2012-04-23 23:40:14 -04:00
John-David Dalton
1f9e66016d
lodash: Add sections to README.md. [jddalton]
...
Former-commit-id: f3db95e12ddb790ca33229aa3333507b184c6e4a
2012-04-23 12:26:02 -04:00
John-David Dalton
f58386b391
lodash: Cleanup compiled code and check for a toArray method on objects before others in _.toArray. [jddalton]
...
Former-commit-id: 9fdde9bbbecd0480e7d3d6674b43cea0810d2aed
2012-04-23 10:48:08 -04:00
John-David Dalton
9af078eb3a
lodash: Sync with Underscore.js commits. [jddalton]
...
Former-commit-id: 0a92b5c9dcd0ff5c4c712e083fa60556ebb1d96a
2012-04-22 18:00:02 -04:00
John-David Dalton
56b2d76eec
lodash: Add unit tests. [jddalton]
...
Former-commit-id: 2c4c8e56bb4afaf19d4da520b2fa995b30251401
2012-04-22 17:00:14 -04:00
John-David Dalton
8e65243edf
lodash: Rename to lodash and update support files. [jddalton]
2012-04-17 20:05:59 -04:00
John-David Dalton
a7667902f3
lowdash: Remove temp underscore tests and update test paths. [jddalton]
2012-04-17 01:46:51 -04:00
John-David Dalton
3619b04b06
low dash: Cleanup repo and add submodules. [jddalton]
2012-04-16 23:48:53 -04:00
Brad Dunbar
d17834aeb0
Fix #547 - _.templateSettings is unchanged by custom settings.
2012-04-09 22:49:12 -04:00
Brad Dunbar
f50690f67e
Tweak variable names. Update docs.
...
* Restore template.source.
* Use variable instead of varname.
* Use text for template input.
* Include settings in documentation.
2012-04-04 08:15:49 -07:00
Brad Dunbar
89c50e1a95
Allow _.templateSettings to be overriden.
2012-04-03 17:38:39 -07:00
Brad Dunbar
b04b813f02
Add varname to _.templateSettings.
...
* Leave out the with statement when using varname.
* Rename source to compiled.
* Comments, comments, comments.
2012-04-03 11:51:57 -07:00
Jeremy Ashkenas
8cfb076c9b
removing added speed test
2012-04-03 11:49:31 -04:00
Jakub Wieczorek
a40001a358
Remove the unnecessary branch in _.shuffle()
...
The non-zero case works properly for 0 as well.
2012-04-03 15:26:39 +02:00
Jeremy Ashkenas
73e6e87858
Fixes #465 -- throttled functions return their value when they actually run.
2012-04-02 16:32:53 -04:00
Jeremy Ashkenas
b52908f78f
Fixes #491 - IE9 / Opera 11 test case.
2012-04-02 15:50:31 -04:00
Jeremy Ashkenas
110523f9cf
Merge pull request #500 from bryanwoods/master
...
Aliases `_.take()` to `_.first()` and `_.head()`
2012-04-02 12:43:06 -07:00
Jeremy Ashkenas
62114126d9
Merge pull request #504 from mwilliamson/master
...
Don't call iterable.toArray in _.toArray if not a function
2012-04-02 12:27:38 -07:00
Jeremy Ashkenas
18ba865009
Merge pull request #524 from octatone/isFinite
...
New Feature: _.isFinite to compliment _.isNumber and _.isNaN
2012-04-02 12:07:28 -07:00
Jeremy Ashkenas
719cd24aa9
adding an initial implementation of a 'pick' function. #523
2012-04-02 15:01:26 -04:00
Jeremy Ashkenas
4fa0a9f4d5
Merge pull request #523 from chrisleishman/restrict
...
Add _.restrict(source, *keys)
2012-04-02 11:51:56 -07:00
Jeremy Ashkenas
180b8b0c83
merging #532 -- allow string as iterator on sortBy
2012-04-02 13:46:49 -04:00
Jeremy Ashkenas
d604895018
revisions to #534 , sortBy(undefined)
2012-04-02 13:16:58 -04:00
Yi, EungJun
6b8a99ba39
Adding the ability to _.sortBy(list, 'property')
2012-03-31 02:28:22 +09:00
Chris Leishman
7c95237845
Add _.restrict(source, *keys)
...
Return a clone of the source with only the properties named in *keys
(either stings or arrays containing strings).
Especially useful for avoiding mass-assignment vulnerabilities.
2012-03-29 11:54:09 -07:00
Raymond May Jr
4266d91805
test _.isFinite against new Number
2012-03-26 13:00:25 -05:00
Raymond May Jr
bf6cb03519
test against NaN
2012-03-25 14:10:35 -05:00
Raymond May Jr
55b68fdaba
formatting
2012-03-25 11:20:57 -05:00
Raymond May Jr
e274235865
_.isFinite fix and tests
2012-03-25 11:08:23 -05:00
Mark Rushakoff
85672298d9
Prefer equal(x, y) over ok(x == y)
2012-03-22 19:21:23 -07:00
Brad Dunbar
ebb9db4e8e
_.result calls property with the correct context.
2012-03-21 06:33:37 -04:00
Raymond May Jr
4c2a85f9c5
size enhancement as ternary and _.size(arr) test case
2012-03-20 09:31:50 -05:00