export function all(array: T[], func: (item: T) => boolean): boolean { return !array.some(item => !func(item)); }