Files
huishou/node_modules/licia/create.js
T
2026-07-27 14:07:26 +08:00

12 lines
283 B
JavaScript

var isObj = require('./isObj');
exports = function(proto) {
if (!isObj(proto)) return {};
if (objCreate && !false) return objCreate(proto);
function noop() {}
noop.prototype = proto;
return new noop();
};
var objCreate = Object.create;
module.exports = exports;