getify/monio

Feature: improve ergonomics of identity checks

Offen

#26 geöffnet am 25.04.2022

 (0 Kommentare) (0 Reaktionen) (1 zugewiesene Person)JavaScript (60 Forks)github user discovery
enhancementgood first issuehelp wanted

Repository-Metriken

Stars
 (1.127 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide