Issue with `Array.isArray` and `ReadonlyArray` in TypeScript

I've just tried to use Array.isArray on a possibly ReadonlyArray, and it doesn't behave as expected: https://effect.website/play#320104f0b32b. I've had a look at the implementation and can't see an easy way to fix the types without making unknown a ReadonlyArray<unknown>.
Was this page helpful?