origamitower / folktale

[not actively maintained!] A standard library for functional programming in JavaScript
https://folktale.origamitower.com/
MIT License
2.04k stars 102 forks source link

Union docs still refer to the old `data` function #221

Open robotlolita opened 5 years ago

robotlolita commented 5 years ago

E.g. from https://folktale.origamitower.com/api/v2.3.0/en/folktale.adt.union.union.union.html#reflection

Note that if two unions have the same type ID, they'll be considered equivalent by hasInstance. You may pass an object (like Symbol('type name')) to data to avoid this, however reference equality does not work across realms in JavaScript.