monio icon indicating copy to clipboard operation
monio copied to clipboard

Feature: improve ergonomics of identity checks

Open getify opened this issue 3 years ago • 0 comments

In addition to things like IO.is(x) to determine if x is an IO monad instance, we can add Symbol.hasInstance to all the monad definitions so that a more ergonomic x isntanceof IO check will work properly.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/hasInstance

getify avatar Apr 25 '22 05:04 getify