Remove baseCreate.

This commit is contained in:
John-David Dalton
2017-02-05 23:43:43 -08:00
parent 7479d282bc
commit b0980a90fc
7 changed files with 6 additions and 143 deletions

View File

@@ -1,17 +0,0 @@
import baseCreate from './.internal/baseCreate.js'
import isPrototype from './.internal/isPrototype.js'
/**
* Initializes an object clone.
*
* @private
* @param {Object} object The object to clone.
* @returns {Object} Returns the initialized clone.
*/
function initCloneObject(object) {
return (typeof object.constructor == 'function' && !isPrototype(object))
? baseCreate(Object.getPrototypeOf(object))
: {}
}
export default initCloneObject