emmanueltouzery / prelude-ts

Functional programming, immutable collections and FP constructs for typescript and javascript
ISC License
377 stars 21 forks source link

make allMatch a type guard as it will be in TS4.0 #45

Closed emmanueltouzery closed 3 years ago

emmanueltouzery commented 4 years ago

in typescript 4.0 Array.every (Seq.allMatch) is a type guard: https://twitter.com/WrocTypeScript/status/1280505107982045198

we already do that for Seq.partition, let's do this also for Seq.allMatch.