Files
lodash/.internal/baseCreate.js
John-David Dalton aa60e55db4 Update module paths.
2017-01-11 10:06:12 -08:00

16 lines
380 B
JavaScript

import isObject from '../isObject.js';
/**
* The base implementation of `create` without support for assigning
* properties to the created object.
*
* @private
* @param {Object} proto The object to inherit from.
* @returns {Object} Returns the new object.
*/
function baseCreate(proto) {
return isObject(proto) ? Object.create(proto) : {};
}
export default baseCreate;