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
Sergey Zarouski
8c5eb7a46f
add _.create to LoDashStatic
...
Something is better then nothing, adding _.create method
2014-08-17 22:08:46 -04:00
Sergey Zarouski
ae63871fe9
Add _.noop to lodash
...
Add static _.noop function to lodash.
2014-07-02 23:10:14 -04:00
Anthony Chu
60ae16ab8e
Add _.xor to Lodash #2377
2014-06-23 16:50:09 +00:00
Brian Zengel
6f61e6419b
Add definitions for _.groupBy and _(...).groupBy when passed an object.
2014-06-16 14:40:03 -04:00
Brian Zengel
a2d2e1b26d
Add chainable definitions for _(...).toArray.
2014-06-16 14:36:09 -04:00
Masahiro Wakame
a1ea25041a
Merge pull request #2282 from bczengel/lodash
...
Lodash - Added chainable definitions for a handful of methods
2014-06-05 11:40:47 +09:00
Kenneth Kolstad
95e42c4916
Test for _.some with a non-dictionary/list argument
2014-06-03 10:26:07 -07:00
Brian Zengel
79e22825d5
Add chainable definitions for _(...).forEach and aliases when passing an non-dictionary object.
2014-06-03 13:24:46 -04:00
Brian Zengel
1def2150e2
Add chainable definitions for _(...).keys
2014-06-03 13:23:28 -04:00
Kenneth Kolstad
b740252f30
Define some and any for an object
2014-06-03 09:57:57 -07:00
Brian Zengel
5968a6823b
Added chainable definitions for _(...).first and aliases
2014-06-02 22:40:45 -04:00
Brian Zengel
f100b9e970
Added chainable definitions for _(...).where
2014-06-02 22:18:12 -04:00
Brian Zengel
b599ab50cc
Added chainable definitions for _(...).sortBy
2014-06-02 22:06:58 -04:00
Brian Zengel
be19adcd82
Added chainable definitions for _(...).reject
2014-06-02 22:06:14 -04:00
Brian Zengel
0fad808e8d
Added TResult generic to chainable _(...).pluck methods
...
This is needed because there is no way to cast the output in the middle of the chain.
This is not be done on _.pluck() methods because T cannot be inferred. In other words, this:
<number>_.pluck(objectArray, 'id');
or this:
var id: number = _.pluck(objectArray, 'id');
is cleaner than this:
_.pluck<IMyObjectInterface, number>(objectArray, 'id');
2014-06-02 16:41:45 -04:00
Brian Zengel
063c99482a
Added chainable definition for _(...).uniq and aliases
2014-06-02 15:45:56 -04:00