mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Bump to v4.16.0.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import getPrototype from './_getPrototype.js';
|
||||
import isHostObject from './_isHostObject.js';
|
||||
import isObjectLike from './isObjectLike.js';
|
||||
|
||||
/** `Object#toString` result references. */
|
||||
@@ -54,8 +53,7 @@ var objectToString = objectProto.toString;
|
||||
* // => true
|
||||
*/
|
||||
function isPlainObject(value) {
|
||||
if (!isObjectLike(value) ||
|
||||
objectToString.call(value) != objectTag || isHostObject(value)) {
|
||||
if (!isObjectLike(value) || objectToString.call(value) != objectTag) {
|
||||
return false;
|
||||
}
|
||||
var proto = getPrototype(value);
|
||||
|
||||
Reference in New Issue
Block a user