1 | import isObject from './isObject';
|
2 |
|
3 | /** Built-in value references. */
|
4 | var 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 | */
|
14 | function baseCreate(proto) {
|
15 | return isObject(proto) ? objectCreate(proto) : {};
|
16 | }
|
17 |
|
18 | export default baseCreate;
|