mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Bump to v3.9.0.
This commit is contained in:
@@ -9,14 +9,14 @@ var isObject = require('../lang/isObject');
|
||||
* @returns {Object} Returns the new object.
|
||||
*/
|
||||
var baseCreate = (function() {
|
||||
function Object() {}
|
||||
function object() {}
|
||||
return function(prototype) {
|
||||
if (isObject(prototype)) {
|
||||
Object.prototype = prototype;
|
||||
var result = new Object;
|
||||
Object.prototype = null;
|
||||
object.prototype = prototype;
|
||||
var result = new object;
|
||||
object.prototype = null;
|
||||
}
|
||||
return result || global.Object();
|
||||
return result || {};
|
||||
};
|
||||
}());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user