I have an array of javascript objects, each containing the members “Id” and “Name”. Are there any built-in way in javascript/jQuery to project this array into another array, for example one that contains only the Names of the elements. In other words, something similar to the Enumerable.Select method in .NET.
Share
There’s a LINQ for JavaScript project on Codeplex: http://linqjs.codeplex.com/
Another method is described here: http://www.ienablemuch.com/2011/05/jquerys-linqs-select.html
An excerpt from it is: