✏️ 编辑:_baseCreate.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/lodash/_baseCreate.js
大小:686 B · 修改:2022-11-21 20:09:36 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
var isObject = require('./isObject'); /** Built-in value references. */ var objectCreate = Object.create; /** * The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {Object} proto The object to inherit from. * @returns {Object} Returns the new object. */ var baseCreate = (function() { function object() {} return function(proto) { if (!isObject(proto)) { return {}; } if (objectCreate) { return objectCreate(proto); } object.prototype = proto; var result = new object; object.prototype = undefined; return result; }; }()); module.exports = baseCreate;
💾 保存
取消
保存为 UTF-8,换行统一为 LF