lodash.isplainobject
Advanced tools
Comparing version
23
index.js
/** | ||
* lodash 4.0.4 (Custom Build) <https://lodash.com/> | ||
* lodash (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -32,2 +32,16 @@ * Copyright jQuery Foundation and other contributors <https://jquery.org/> | ||
/** | ||
* 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. */ | ||
@@ -46,3 +60,4 @@ var objectProto = Object.prototype; | ||
/** | ||
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) | ||
* Used to resolve the | ||
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) | ||
* of values. | ||
@@ -62,5 +77,3 @@ */ | ||
*/ | ||
function getPrototype(value) { | ||
return nativeGetPrototype(Object(value)); | ||
} | ||
var getPrototype = overArg(nativeGetPrototype, Object); | ||
@@ -67,0 +80,0 @@ /** |
{ | ||
"name": "lodash.isplainobject", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"description": "The lodash method `_.isPlainObject` exported as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.isplainobject v4.0.4 | ||
# lodash.isplainobject v4.0.5 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.isPlainObject` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#isPlainObject) or [package source](https://github.com/lodash/lodash/blob/4.0.4-npm-packages/lodash.isplainobject) for more details. | ||
See the [documentation](https://lodash.com/docs#isPlainObject) or [package source](https://github.com/lodash/lodash/blob/4.0.5-npm-packages/lodash.isplainobject) for more details. |
7126
4.89%135
9.76%