Sha256: 5f1f6da5c796b6fab723105585bb2266ba7ce02d265fcb4c4d972b937577143e
Contents?: true
Size: 569 Bytes
Versions: 153
Compression:
Stored size: 569 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 = undefined; } return result || {}; }; }()); module.exports = baseCreate;
Version data entries
153 entries across 80 versions & 8 rubygems