Prompt
Implement Reselect's core: createSelector(inputSelectors, combiner):
- Returns
selector(state)that runs each input selector, thencombiner(...inputResults) - If every input result is reference-equal (
===) to last time, return the cached combiner result WITHOUT calling the combiner - Cache size 1 (like Reselect's default)
Hints
Solution
Your Code
20 min