mirror of
https://github.com/mmahdium/portfolio.git
synced 2026-08-16 21:14:31 +03:30
Initial commit (secrets removed)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// like `any` in Python
|
||||
export const any = (iterable: any[]): boolean => {
|
||||
return iterable.some(Boolean)
|
||||
}
|
||||
|
||||
// like `all` in Python
|
||||
export const all = (iterable: any[]): boolean => {
|
||||
return iterable.every(Boolean)
|
||||
}
|
||||
Reference in New Issue
Block a user