(name, func)
| 11402 | |
| 11403 | // A method to easily add functions to the OOP wrapper. |
| 11404 | var addToWrapper = function(name, func) { |
| 11405 | wrapper.prototype[name] = function() { |
| 11406 | var args = slice.call(arguments); |
| 11407 | unshift.call(args, this._wrapped); |
| 11408 | return result(func.apply(_, args), this._chain); |
| 11409 | }; |
| 11410 | }; |
| 11411 | |
| 11412 | // Add all of the Underscore functions to the wrapper object. |
| 11413 | _.mixin(_); |
no test coverage detected
searching dependent graphs…