kfuzaylov / FastJs

The Fastest Javascript Framework
48 stars 3 forks source link

array[ array.length ] = item --> array.push( item ); #4

Closed stryju closed 11 years ago

stryju commented 11 years ago

pretty self-explainatory

perf test: http://jsperf.com/adding-array-elements

would love to test the performance and integrity, but no tests provided

kfuzaylov commented 11 years ago

Thanks stryju! Thant is right, to replace array[ array.length ] to push method. I didn't know now most of all javascript engines optimized this method.