diff options
Diffstat (limited to 'tools/eslint/node_modules/lodash/internal/baseCreate.js')
-rw-r--r-- | tools/eslint/node_modules/lodash/internal/baseCreate.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tools/eslint/node_modules/lodash/internal/baseCreate.js b/tools/eslint/node_modules/lodash/internal/baseCreate.js deleted file mode 100644 index be5e1d9d48..0000000000 --- a/tools/eslint/node_modules/lodash/internal/baseCreate.js +++ /dev/null @@ -1,23 +0,0 @@ -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; |