MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / clone

Function clone

docs/_static/underscore-1.13.1.js:630–633  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

628
629 // Create a (shallow-cloned) duplicate of an object.
630 function clone(obj) {
631 if (!isObject(obj)) return obj;
632 return isArray(obj) ? obj.slice() : extend({}, obj);
633 }
634
635 // Invokes `interceptor` with the `obj` and then returns `obj`.
636 // The primary purpose of this method is to "tap into" a method chain, in

Callers 1

sampleFunction · 0.85

Calls 1

isObjectFunction · 0.85

Tested by

no test coverage detected