mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
23
react-app/node_modules/lodash/internal/baseCreate.js
generated
vendored
Normal file
23
react-app/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 = undefined;
|
||||
}
|
||||
return result || {};
|
||||
};
|
||||
}());
|
||||
|
||||
module.exports = baseCreate;
|
Reference in New Issue
Block a user