flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
11
VISUALIZACION/node_modules/underscore/amd/clone.js
generated
vendored
Executable file
11
VISUALIZACION/node_modules/underscore/amd/clone.js
generated
vendored
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
define(['./isObject', './isArray', './extend'], function (isObject, isArray, extend) {
|
||||
|
||||
// Create a (shallow-cloned) duplicate of an object.
|
||||
function clone(obj) {
|
||||
if (!isObject(obj)) return obj;
|
||||
return isArray(obj) ? obj.slice() : extend({}, obj);
|
||||
}
|
||||
|
||||
return clone;
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue