developit / developit/unistore
Best practice for "filter" functions?
Open
question
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
Description
What is the best practice for functions that don't alter state, but just return a subset of state? Eg. show todos that start with 'a'? Or if I have a cart that is an array of product ids, and I want the array of products based on those ids.
Thanks in advance.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.