export const find = (predicate, xs) => { return (xs || []).find((x, index) => predicate(x, index)); };