Sha256: d76efa25db8f90be94519f365aeee758d375bd3760fb25c891e9d71ef70e92a7
Contents?: true
Size: 577 Bytes
Versions: 14
Compression:
Stored size: 577 Bytes
Contents
var isObject = require('../lang/isObject'); /** * The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {Object} prototype The object to inherit from. * @returns {Object} Returns the new object. */ var baseCreate = (function() { function Object() {} return function(prototype) { if (isObject(prototype)) { Object.prototype = prototype; var result = new Object; Object.prototype = null; } return result || global.Object(); }; }()); module.exports = baseCreate;
Version data entries
14 entries across 7 versions & 1 rubygems