* Simple bind, faster than native * * @param {Function} fn * @param {Object} ctx * @return {Function}
(fn, ctx)
| 215 | */ |
| 216 | |
| 217 | function bind(fn, ctx) { |
| 218 | return function (a) { |
| 219 | var l = arguments.length; |
| 220 | return l ? l > 1 ? fn.apply(ctx, arguments) : fn.call(ctx, a) : fn.call(ctx); |
| 221 | }; |
| 222 | } |
| 223 | |
| 224 | /** |
| 225 | * Convert an Array-like object to a real Array. |
no outgoing calls
no test coverage detected