Skip to content
Myr

Added argsArray()

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

authored by visionmedia · committed by visionmedia · parent 416e2ee · Browse files · 2 files+24 added−0 removed
This commit

State

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

Diff stats

2 files+24 added−0 removed

  • tests:+10 added−0 removed
  • other:+14 added−0 removed

2 files+24 added−0 removed

modified:lib/express.core.js+14 added
195 unmodified lines
196 replace(/>/g, '>')197 },198 199 /**200 * Convert native arguments object into an201 * array with optional _offset_.202 *203 * @param {arguments} args204 * @param {int} offset205 * @return {array}206 * @api public207 */208 209 argsArray : function(args, offset) {210 return Array.prototype.slice.call(args, offset)211 },212 213 /**214 * Attept to match and call a route for 215 * the given _request_, returning the data216 * returned by the route callback.217 *
82 unmodified lines
modified:spec/spec.core.js+10 added