Bump to v4.0.5.

This commit is contained in:
John-David Dalton
2016-03-01 20:55:53 -08:00
parent 5f90c0b163
commit a219b6c927
48 changed files with 791 additions and 327 deletions

View File

@@ -1,5 +1,5 @@
/**
* lodash 4.0.4 (Custom Build) <https://lodash.com/>
* lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Released under MIT license <https://lodash.com/license>
@@ -29,6 +29,20 @@ function isHostObject(value) {
return result;
}
/**
* Creates a function that invokes `func` with its first argument transformed.
*
* @private
* @param {Function} func The function to wrap.
* @param {Function} transform The argument transform.
* @returns {Function} Returns the new function.
*/
function overArg(func, transform) {
return function(arg) {
return func(transform(arg));
};
}
/** Used for built-in method references. */
var objectProto = Object.prototype;
@@ -58,9 +72,7 @@ var nativeGetPrototype = Object.getPrototypeOf;
* @param {*} value The value to query.
* @returns {null|Object} Returns the `[[Prototype]]`.
*/
function getPrototype(value) {
return nativeGetPrototype(Object(value));
}
var getPrototype = overArg(nativeGetPrototype, Object);
/**
* Checks if `value` is object-like. A value is object-like if it's not `null`