How do I make a custom immutable type using facebook/immutable-js?
问题 I am attempting to make a simple immutable Interval type. It has a start and an end property. Is there a straightforward way to utilize the immutable-js library to create your own custom immutable types? My current attempt at using a containment pattern with Immutable.Map and Immutable.List is not working so well. difference , for example, should return an immutable list of Intervals, but because it creates new instances of Interval, the List it returns will not pass equality. It feels like I