File size: 153 Bytes
d9494a5
 
 
 
 
1
2
3
4
5
6
export const findById = <T extends { id: string }>(idToMatch: string) => {
  return (itemToFind: T) => {
    return itemToFind.id === idToMatch;
  };
};