246 Commits
Author SHA1 Message Date
Ilya Mochalov 1b5177dc28 lodash: changed _.values() method 2015-07-20 02:04:38 +05:00
Masahiro Wakame c8afffd16a Merge pull request #4964 from chrootsu/lodash-valuesIn
lodash: added _.valuesIn() method
2015-07-19 21:38:04 +09:00
Ilya Mochalov e6ca97a0aa lodash: added _.valuesIn() method 2015-07-19 09:28:17 +05:00
Ilya Mochalov 728600a0f4 lodash: added _.keyIn() method 2015-07-18 07:47:13 +05:00
Masahiro Wakame ed4da2079d Merge pull request #4791 from pimterry/lodash-flatten
Fix the very broken lodash flatten() type definitions
2015-07-15 01:44:34 +09:00
Masahiro Wakame dbd5a1d029 Merge pull request #4858 from dbeckwith/master
Fixes lodash contains searching keys instead of values on objects
2015-07-15 01:43:17 +09:00
Daniel Beckwith 2f7754dceb Fixes contains searching keys instead of values on objects, also adds "includes" alias. 2015-07-07 17:49:06 -04:00
Slavo Vojacek 72bd5e2a67 Update lodash.d.ts 2015-07-06 10:02:25 +01:00
Slavo Vojacek 7eadcd7bb0 Update lodash.d.ts
Not really sure why some functions are not here at all, but I needed this one (_.fill) in one of my projects so contributing back.
2015-07-06 09:50:54 +01:00
Masahiro Wakame 2443c926d1 Merge pull request #4734 from heycalmdown/lodash
lodash: Add _.matchesProperty style to _.find
2015-07-03 21:59:14 +09:00
Tim Perry ed15e4bd38 Make _.flatten(array, bool) slightly more general 2015-07-01 16:14:31 +01:00
Tim Perry 36f2158f0c Fix _().flatten() - remove non-existent methods, small type improvement
Previously type was too specific, and thereby often wrong. It's now less
specific, but never wrong.
2015-07-01 14:58:39 +01:00
Tim Perry 37c7620008 More specific _.flatten type, remove types for non-existent methods 2015-07-01 14:45:36 +01:00
heycalmdown 839ae68663 lodash: Comments for _.detect 2015-07-01 12:34:43 +09:00
nfantone 4be7a74f86 Change LoDashArrayWrapper -> LoDashWrapper in sample() chaining 2015-06-28 01:33:30 -03:00
heycalmdown 78b83e0c23 lodash: Add _.matchesProperty style to _.find 2015-06-25 09:12:31 +09:00
nfantone 7da2851ffc Add sample() to LoDashArrayWrapper interface 2015-06-14 18:32:45 -03:00
Masahiro Wakame 0039c27f18 Merge pull request #4494 from daptiv/90296-fte-rounding
Add in _.mapValues definitions for use in chains
2015-06-08 01:42:48 +09:00
Masahiro Wakame 1db3808ae3 Merge pull request #4562 from kkolstad/lodash-typed-remove
lodash: add generic _.remove
2015-06-08 01:33:53 +09:00
Kenneth Kolstad ed5be30e62 lodash: add generic _.remove 2015-06-05 15:48:45 -07:00
Adam Kalman 18fdbd98c7 90296 add and fix tests
add in a test for the new code, and make all the tests pass.
2015-05-29 14:52:58 -07:00
Adam Kalman 39f23d9cb1 Merge remote-tracking branch 'source/master' into 90296-fte-rounding 2015-05-29 14:20:20 -07:00
Adam Kalman cec0beaa1c 90296 add in map values definitions
add in definitions for map values when used within a chain
generated via _.chain or _().
2015-05-29 14:17:17 -07:00
Sam Albert 9f902efd35 Added _.get definition to lodash with updated test file. 2015-05-26 13:31:01 -04:00
Masahiro Wakame b4a22a180d Merge pull request #4103 from peferron/zipobject
lodash: update _.zipObject and _.object
2015-05-19 23:48:48 +09:00
Masahiro Wakame d34ab2318c Merge pull request #4163 from peferron/lodash-sum
lodash: add _.sum
2015-05-19 23:48:17 +09:00
Ilya Mochalov fba82fdad1 lodash: added now() method 2015-05-14 11:07:34 +05:00
Masahiro Wakame 5bee563842 Merge pull request #3730 from NN---/patch-16
Use DictionaryIterator for Dictionary functions
2015-05-12 00:44:01 +09:00
Artur Górski b51c8d74f7 _.bind updated to support rest parameters 2015-05-06 18:32:55 +02:00
Masahiro Wakame 207fc2a07b Merge pull request #3930 from jedmao/lodash
Lodash union types, optional args
2015-05-06 23:57:50 +09:00
TeamworkGuy2 60cb461b5e Replaced special characters (0x24C8 'circled latin capital letter' and 0x2019 'right single quotation mark') in lodash.d.ts with closest ASCII equivalent characters. Special characters were causing file encoding issues in some IDEs. 2015-05-02 12:33:59 +00:00
peferron 90360d69d9 lodash: make sum() only callable on wrapped arrays of numbers
This change triggers a compilation error when typing e.g.
_(["abc"]).sum()
2015-04-28 12:19:53 -07:00
peferron cdd08b72e6 lodash: add _.sum 2015-04-20 16:39:18 -07:00
peferron eff54af628 lodash: update _.zipObject and _.object
- Update the jsdoc and parameter names.
- Add the 'two-dimensional array' invocation type.
- Add chaining.
- In the test file, replace `{ [key: string]: any }` by `Dictionary<any>` for consistency with the rest of the code.
2015-04-13 21:25:54 -07:00
peferron 78ca9de07e lodash: add _.chunk 2015-04-13 20:17:04 -07:00
Jon Nyman 6baac1dca4 add isError property
https://lodash.com/docs#isError
2015-04-08 10:55:15 -07:00
Ilya Mochalov 5229045da8 Expose _.shuffle() in chained array and object wrappers 2015-03-31 01:04:56 +05:00
Jed Mao 049e87b386 Lodash union types, optional args 2015-03-20 21:43:15 -05:00
NN 03735927ae Use DictionaryIterator for Dictionary functions
Without DictionaryIterator the simplest code is impossible to write:

var myDictionary : {[x:string]: string;}

_.filter(myDictionary, (v, k, c) => { return k == "A"; })
2015-02-24 18:02:04 +02:00
Kasumi Hanazuki 2127b2f1e4 lodash: Add definitions for string functions 2015-02-13 16:13:45 +09:00
Eric Lu 137a5b8e4a Expose _.filter() in chained object wrapper 2015-02-10 10:51:53 -08:00
David Morgantini 9861ba85fd fix mistake in constant
* constant returns a function rather than a type
2014-12-09 22:24:39 +00:00
David Morgantini fe4a5c024a add constant to lodash 2014-11-23 22:25:55 +00:00
Andrew Cholakian 46120dcb68 Support _.property in lodash.d.ts 2014-11-19 17:31:54 -06:00
vvakame f4630ffae9 suppress error lodash/lodash-tests.ts 2014-11-13 15:08:41 +09:00
motemen 2507e73a5f _(...).find 2014-10-18 18:08:20 +09:00
motemen 824029abf4 _(...).max, min 2014-10-18 18:08:20 +09:00
motemen 3653640a60 _(...).zip and aliases 2014-10-18 18:08:05 +09:00
motemen a59dd92bf7 _(...).findLast 2014-10-18 18:07:43 +09:00
vvakame 4c496a911e fix lodash/lodash-tests.ts 2014-10-07 15:10:23 +09:00