Skip to content
Myr

Misc refactoring

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 25cf422 · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:lib/express/collection.js+1 added-2 removed
27 unmodified lines
28function callback(fn) {29 if (fn === undefined) return30 if (fn instanceof Function) return fn31 if (fn.length < 4) return Function('a, b, c', 'return a ' + fn + ' b')32 if (property.test(fn) ||33 method.test(fn)) fn = 'a.' + fn32 if (property.test(fn) || method.test(fn)) fn = 'a.' + fn33 return Function('a, b, c', 'return ' + fn)34}3536// --- Collection
507 unmodified lines