41. implement FindIndex<T, E>

TypeScript

  -通过 / -执行

正如Array.prototype.findIndex(), 请实现FindIndex<T, E>

type A = [any, never, 1, '2', true]type B = FindIndex<A, 1> // 2type C = FindIndex<A, 3> // never

争取10分钟以内搞定这个问题