diff --git a/lodash.js b/lodash.js index cabe146a8..c3cf2645a 100644 --- a/lodash.js +++ b/lodash.js @@ -6453,7 +6453,8 @@ } /** - * Checks if `value` is an object created by the `Object` constructor. + * Checks if `value` is an object created by the `Object` constructor or has + * a `[[Prototype]]` of `null`. * * @static * @memberOf _ @@ -6475,6 +6476,9 @@ * * _.isPlainObject({ 'x': 0, 'y': 0 }); * // => true + * + * _.isPlainObject(Object.create(null)); + * // => true */ var isPlainObject = !getPrototypeOf ? shimIsPlainObject : function(value) { if (!(value && toString.call(value) == objectClass) || (!support.argsClass && isArguments(value))) {