lodash.isplainobject
Advanced tools
Comparing version 2.4.0 to 2.4.1
10
index.js
/** | ||
* Lo-Dash 2.4.0 (Custom Build) <http://lodash.com/> | ||
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> | ||
* Build: `lodash modularize modern exports="npm" -o ./npm/` | ||
@@ -9,3 +9,3 @@ * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> | ||
*/ | ||
var reNative = require('lodash._renative'), | ||
var isNative = require('lodash._isnative'), | ||
shimIsPlainObject = require('lodash._shimisplainobject'); | ||
@@ -23,3 +23,3 @@ | ||
/** Native method shortcuts */ | ||
var getPrototypeOf = reNative.test(getPrototypeOf = Object.getPrototypeOf) && getPrototypeOf; | ||
var getPrototypeOf = isNative(getPrototypeOf = Object.getPrototypeOf) && getPrototypeOf; | ||
@@ -50,3 +50,3 @@ /** | ||
*/ | ||
var isPlainObject = function(value) { | ||
var isPlainObject = !getPrototypeOf ? shimIsPlainObject : function(value) { | ||
if (!(value && toString.call(value) == objectClass)) { | ||
@@ -56,3 +56,3 @@ return false; | ||
var valueOf = value.valueOf, | ||
objProto = typeof valueOf == 'function' && (objProto = getPrototypeOf(valueOf)) && getPrototypeOf(objProto); | ||
objProto = isNative(valueOf) && (objProto = getPrototypeOf(valueOf)) && getPrototypeOf(objProto); | ||
@@ -59,0 +59,0 @@ return objProto |
{ | ||
"name": "lodash.isplainobject", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "The Lo-Dash function `_.isPlainObject` as a Node.js module generated by lodash-cli.", | ||
@@ -18,5 +18,5 @@ "homepage": "http://lodash.com/custom-builds", | ||
"dependencies": { | ||
"lodash._renative": "~2.4.0", | ||
"lodash._shimisplainobject": "~2.4.0" | ||
"lodash._isnative": "~2.4.1", | ||
"lodash._shimisplainobject": "~2.4.1" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# lodash.isplainobject v2.4.0 | ||
# lodash.isplainobject v2.4.1 | ||
@@ -3,0 +3,0 @@ The [Lo-Dash](http://lodash.com/) function [`_.isPlainObject`](http://lodash.com/docs#isPlainObject) as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). |
5111
+ Addedlodash._isnative@~2.4.1
- Removedlodash._renative@~2.4.0
- Removedlodash._renative@2.4.0(transitive)