select array oof ids from list of objects type script code example Example: get all the ids in an array of objects ts array.map(s=>s.id)