Useful functions for working with arrays:
- Range
- Flatten (recursively)
- Chunk
- Remove duplicates
- Remove duplicates by object property
- Group by object property
A toy observables library inspired by RxJS, with pipeable operators.
A hook for fetching data where only the response from the most recent fetch request is needed.
When the arguments are updated, a new fetch request is triggered and the previous one is aborted and ignored.
This is useful in situations where a user might make selections in the UI that trigger multiple fetch requests. For example, selecting from a group of filters which then fetches new data from an API. In this situation, only the most recent selection is relevant.