Open croraf opened 6 years ago
I'm checking a number of classes and cannot find their usage examples.
For example what I need is http://www.collectionsjs.com/sorted-map. I need to make custom compare and equals.
I assume I should pass equals and compare functions in the factory function SortedMap(entries, equals, compare).
SortedMap(entries, equals, compare)
What is the format of these functions, any examples of how should I use them?
I'm checking a number of classes and cannot find their usage examples.
For example what I need is http://www.collectionsjs.com/sorted-map. I need to make custom compare and equals.
I assume I should pass equals and compare functions in the factory function
SortedMap(entries, equals, compare)
.What is the format of these functions, any examples of how should I use them?