UNPKG

@4players/odin-common

Version:

A collection of commonly used type definitions and utility functions across ODIN web projects

8 lines (7 loc) 164 B
export function find(entries, predicate) { for (const entry of entries) { if (predicate(entry)) return entry; } return undefined; }