2022-11-29 18:02:50 +08:00

1.3 KiB

All medium #array

by cutefcc @cutefcc

Take the Challenge

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

Back Share your Solutions Check out Solutions