UNPKG

450 BJavaScriptView Raw
1import isObject from './isObject';
2
3/** Built-in value references. */
4var objectCreate = Object.create;
5
6/**
7 * The base implementation of `_.create` without support for assigning
8 * properties to the created object.
9 *
10 * @private
11 * @param {Object} prototype The object to inherit from.
12 * @returns {Object} Returns the new object.
13 */
14function baseCreate(proto) {
15 return isObject(proto) ? objectCreate(proto) : {};
16}
17
18export default baseCreate;