One of my friend use [].slice.call() to fill an array with match element. I wonder how its works. I just know .push method to fill an array. Also I seen there is difference in both technique to fill an array. So my question is how .slice help to fill an array and what is its role and .push method make and object and .slice make direct array. [fiddle][1]
var arr=[];
var arr=[].slice.call($('[id^=name]'));
//arr.push($('[id^=name]'))
console.log(arr)
[1]: http://jsfiddle.net/YbLWX/