0376ef53e3
Some checks reported errors
continuous-integration/drone/push Build was killed
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: #725 Co-authored-by: dpschen <dpschen@noreply.kolaente.de> Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
3 lines
130 B
TypeScript
3 lines
130 B
TypeScript
export function findIndexById(array : [], id : string | number) {
|
|
return array.findIndex(({id: currentId}) => currentId === id)
|
|
} |