Skip to content
Myr

Refactored Collection#keys() with Object.keys()

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

authored by visionmedia · committed by visionmedia · parent 284cc6f · Browse files · 1 file+1 added−3 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−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:lib/express/collection.js+1 added-3 removed
367 unmodified lines
368 * @api public369 */370 371 keys: function() {372 return this.map(function(val, key){373 return key374 })372 return $(Object.keys(this.arr))373 },374 375 /**376 * Convert a collection to a true array.
168 unmodified lines