getify/monio

Feature: improve ergonomics of identity checks

Open

#26 建立於 2022年4月25日

在 GitHub 查看
 (0 留言) (0 反應) (1 負責人)JavaScript (60 fork)github user discovery
enhancementgood first issuehelp wanted

倉庫指標

Star
 (1,127 star)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南