1 var isObject = require('../lang/isObject');
4 * The base implementation of `_.create` without support for assigning
5 * properties to the created object.
8 * @param {Object} prototype The object to inherit from.
9 * @returns {Object} Returns the new object.
11 var baseCreate = (function() {
13 return function(prototype) {
14 if (isObject(prototype)) {
15 Object.prototype = prototype;
16 var result = new Object;
17 Object.prototype = null;
19 return result || global.Object();
23 module.exports = baseCreate;