currying in javascript


/ Published in: JavaScript
Save to your folder(s)

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.