You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

lodash.isplainobject

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.3 to 4.0.4

35

index.js
/**
* lodash 4.0.3 (Custom Build) <https://lodash.com/>
* lodash 4.0.4 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/

@@ -38,2 +38,5 @@

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/** Used to infer the `Object` constructor. */

@@ -48,6 +51,17 @@ var objectCtorString = funcToString.call(Object);

/** Built-in value references. */
var getPrototypeOf = Object.getPrototypeOf;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetPrototype = Object.getPrototypeOf;
/**
* Gets the `[[Prototype]]` of `value`.
*
* @private
* @param {*} value The value to query.
* @returns {null|Object} Returns the `[[Prototype]]`.
*/
function getPrototype(value) {
return nativeGetPrototype(Object(value));
}
/**
* Checks if `value` is object-like. A value is object-like if it's not `null`

@@ -58,2 +72,3 @@ * and has a `typeof` result of "object".

* @memberOf _
* @since 4.0.0
* @category Lang

@@ -86,5 +101,7 @@ * @param {*} value The value to check.

* @memberOf _
* @since 0.8.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
* @returns {boolean} Returns `true` if `value` is a plain object,
* else `false`.
* @example

@@ -113,7 +130,7 @@ *

}
var proto = getPrototypeOf(value);
var proto = getPrototype(value);
if (proto === null) {
return true;
}
var Ctor = proto.constructor;
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
return (typeof Ctor == 'function' &&

@@ -120,0 +137,0 @@ Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);

{
"name": "lodash.isplainobject",
"version": "4.0.3",
"version": "4.0.4",
"description": "The lodash method `_.isPlainObject` exported as a module.",

@@ -12,3 +12,3 @@ "homepage": "https://lodash.com/",

"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"Blaine Bublitz <blaine@iceddev.com> (https://github.com/phated)",
"Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"

@@ -15,0 +15,0 @@ ],

@@ -1,2 +0,2 @@

# lodash.isplainobject v4.0.3
# lodash.isplainobject v4.0.4

@@ -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.3-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.4-npm-packages/lodash.isplainobject) for more details.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc