Profile
Achievement
hand4ever's Recent Snippets
- All /
« Prev 1 Next »
each in Array,It can operate each element in Array.
e.g.
var result = [1,2,3,4].each(function(x){return Math.sqrt(x);});
//it return sqrt in [1,2,3,4]'s each item
0
512
posted 14 years ago by hand4ever