ramda: R.construct not working with Set?
The construct
docs state it works as a constructor, but it fails for me for Set
:
new Set([1,2,3])
// Set {1, 2, 3}
R.construct(Set)([1,2,3])
// Set {}
Am I doing it wrong?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (10 by maintainers)
@tycho01 don’t be so harsh on yourself. That was also super not obvious for me. Glad I came across that question 👍