(obj)
| 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 |