TypeScript: Select fields from Array of Object

Posted by Unknown On Thursday, July 6, 2017 0 comments

var ids = this.products.map((p) => p.id);
var products= this.selectedProducts.map((p) => { p.id, p.name });

0 comments:

Post a Comment