Skip to content
Myr

Removed toArray() util. use arguments.values

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

authored by visionmedia · committed by visionmedia · parent d6c8439 · Browse files · 2 files+0 added−29 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+0 added−29 removed

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

2 files+0 added−29 removed

modified:lib/express/utils.js-14 removed
modified:spec/spec.utils.js-15 removed
2 unmodified lines
3 before4 utils = require('express/utils')5 end6 7 describe 'toArray()'8 describe 'when given an array'9 it 'should return the array'10 utils.toArray([1,2,3]).should.eql [1,2,3]11 end12 end13 14 describe 'when given an object with indexed values and length'15 it 'should return an array'16 var args = -{ return arguments }('foo', 'bar')17 utils.toArray(args).should.eql ['foo', 'bar']18 end19 end20 end21 7 describe 'escape()'8 it 'should escape html'9 utils.escape('<p>this & that').should.eql '&lt;p&gt;this &amp; that'10 end
113 unmodified lines