1 var isObject = require('./isObject');
3 /** Built-in value references. */
4 var objectCreate = Object.create;
7 * The base implementation of `_.create` without support for assigning
8 * properties to the created object.
11 * @param {Object} proto The object to inherit from.
12 * @returns {Object} Returns the new object.
14 var baseCreate = (function() {
16 return function(proto) {
17 if (!isObject(proto)) {
21 return objectCreate(proto);
23 object.prototype = proto;
24 var result = new object;
25 object.prototype = undefined;
30 module.exports = baseCreate;