mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
more work
This commit is contained in:
23
node_modules/lodash/internal/baseCreate.js
generated
vendored
Normal file
23
node_modules/lodash/internal/baseCreate.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
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 = null;
|
||||
}
|
||||
return result || global.Object();
|
||||
};
|
||||
}());
|
||||
|
||||
module.exports = baseCreate;
|
Reference in New Issue
Block a user