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 baseCreate from './.internal/baseCreate.js';
import getPrototype from './.internal/getPrototype.js';
import isPrototype from './.internal/isPrototype.js';
/**
@@ -11,7 +10,7 @@ import isPrototype from './.internal/isPrototype.js';
*/
function initCloneObject(object) {
return (typeof object.constructor == 'function' && !isPrototype(object))
? baseCreate(getPrototype(object))
? baseCreate(Object.getPrototypeOf(object))
: {};
}