Add _.chain tests and ensure they pass.

Former-commit-id: e365b65da8a740383c975c7b904ad2156d1cc8ab
This commit is contained in:
John-David Dalton
2013-05-14 22:48:34 -07:00
parent fdc9d5f1fd
commit ee1933389a
9 changed files with 51 additions and 24 deletions

View File

@@ -4282,7 +4282,6 @@
lodash.zip = zip;
// add aliases
lodash.chain = chain;
lodash.collect = map;
lodash.drop = rest;
lodash.each = forEach;
@@ -4293,6 +4292,10 @@
lodash.tail = rest;
lodash.unique = uniq;
// add chain compat
lodash.chain = chain;
lodash.prototype.chain = wrapperChain;
/*--------------------------------------------------------------------------*/
// add functions that return unwrapped values when chaining
@@ -4369,7 +4372,6 @@
mixin(lodash);
// add "Chaining" functions to the wrapper
lodash.prototype.chain = wrapperChain;
lodash.prototype.value = wrapperValueOf;
// add `Array` mutator functions to the wrapper