mirror of
https://github.com/type-challenges/type-challenges.git
synced 2026-02-01 15:47:22 +00:00
1.3 KiB
1.3 KiB
All

by cutefcc @cutefcc
Returns true if all elements of the list are equal to the second parameter passed in, false if there are any mismatches.
For example
type Test1 = [1, 1, 1]
type Test2 = [1, 1, 2]
type Todo = All<Test1, 1> // should be same as true
type Todo2 = All<Test2, 1> // should be same as false