function fieldById fieldById<Field extends PropertyKey>(field: Field): unknown Index one field from each item by its id. Type Parameters Field extends PropertyKey Parameters field: Field Return Type unknown