1 line
2.3 KiB
JSON
1 line
2.3 KiB
JSON
{"ast":null,"code":"var isObject = require('./isObject');\n/** Built-in value references. */\n\n\nvar objectCreate = Object.create;\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n\nvar baseCreate = function () {\n function object() {}\n\n return function (proto) {\n if (!isObject(proto)) {\n return {};\n }\n\n if (objectCreate) {\n return objectCreate(proto);\n }\n\n object.prototype = proto;\n var result = new object();\n object.prototype = undefined;\n return result;\n };\n}();\n\nmodule.exports = baseCreate;","map":{"version":3,"sources":["/Users/tylerkoenig/Code/personal/react-scss2/node_modules/lodash/_baseCreate.js"],"names":["isObject","require","objectCreate","Object","create","baseCreate","object","proto","prototype","result","undefined","module","exports"],"mappings":"AAAA,IAAIA,QAAQ,GAAGC,OAAO,CAAC,YAAD,CAAtB;AAEA;;;AACA,IAAIC,YAAY,GAAGC,MAAM,CAACC,MAA1B;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,IAAIC,UAAU,GAAI,YAAW;AAC3B,WAASC,MAAT,GAAkB,CAAE;;AACpB,SAAO,UAASC,KAAT,EAAgB;AACrB,QAAI,CAACP,QAAQ,CAACO,KAAD,CAAb,EAAsB;AACpB,aAAO,EAAP;AACD;;AACD,QAAIL,YAAJ,EAAkB;AAChB,aAAOA,YAAY,CAACK,KAAD,CAAnB;AACD;;AACDD,IAAAA,MAAM,CAACE,SAAP,GAAmBD,KAAnB;AACA,QAAIE,MAAM,GAAG,IAAIH,MAAJ,EAAb;AACAA,IAAAA,MAAM,CAACE,SAAP,GAAmBE,SAAnB;AACA,WAAOD,MAAP;AACD,GAXD;AAYD,CAdiB,EAAlB;;AAgBAE,MAAM,CAACC,OAAP,GAAiBP,UAAjB","sourcesContent":["var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n"]},"metadata":{},"sourceType":"script"} |