Bump to v3.2.0.

This commit is contained in:
jdalton
2015-02-12 08:27:43 -08:00
parent d5f4043617
commit b82c7ebc32
92 changed files with 816 additions and 378 deletions

32
chain/wrapperCommit.js Normal file
View File

@@ -0,0 +1,32 @@
import LodashWrapper from '../internal/LodashWrapper';
/**
* Executes the chained sequence and returns the wrapped result.
*
* @name commit
* @memberOf _
* @category Chain
* @returns {Object} Returns the new `lodash` wrapper instance.
* @example
*
* var array = [1, 2];
* var wrapper = _(array).push(3);
*
* console.log(array);
* // => [1, 2]
*
* wrapper = wrapper.commit();
* console.log(array);
* // => [1, 2, 3]
*
* wrapper.last();
* // => 3
*
* console.log(array);
* // => [1, 2, 3]
*/
function wrapperCommit() {
return new LodashWrapper(this.value(), this.__chain__);
}
export default wrapperCommit;