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