Remove getPrototype.

This commit is contained in:
John-David Dalton
2017-01-10 17:44:48 -08:00
parent 003c11c36b
commit b6bdb23ffd
5 changed files with 6 additions and 15 deletions

View File

@@ -1,5 +1,4 @@
import baseGetTag from './.internal/baseGetTag.js';
import getPrototype from './.internal/getPrototype.js';
import isObjectLike from './isObjectLike.js';
/** Used to resolve the decompiled source of functions. */
@@ -41,7 +40,7 @@ function isPlainObject(value) {
if (!isObjectLike(value) || baseGetTag(value) != '[object Object]') {
return false;
}
const proto = getPrototype(value);
const proto = Object.getPrototypeOf(value);
if (proto === null) {
return true;
}