mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-05 20:56:13 -05:00
5 lines
180 B
TypeScript
5 lines
180 B
TypeScript
// xxx: should instead take array of functions to improve efficiency (not run them all if not necessary)
|
|
export function allTruthy(arr: unknown[]) {
|
|
return arr.every(Boolean);
|
|
}
|