Browse Source

docs(manipulate-entries): add prototype types for expected functions

pull/2015/head
Michele Sessa 1 year ago committed by Michele
parent
commit
b70f111c29
  1. 6
      subjects/manipulate-entries/README.md

6
subjects/manipulate-entries/README.md

@ -4,9 +4,9 @@
Create 3 functions which work like the `.filter`, `.map` and `.reduce` array methods, but for the **entries** in the grocery cart.
- `filterEntries`: filters using both key and value.
- `mapEntries`: changes the key, the value or both.
- `reduceEntries`: reduces the entries.
- `filterEntries`: filters using both key and value, passed as an array (`[k, v]`).
- `mapEntries`: changes the key, the value or both, passed as an array (`[k, v]`).
- `reduceEntries`: reduces the entries passing keys and values as an array (`[k, v]`).
Create 3 additional functions that use your previously created functions and take an object as input:

Loading…
Cancel
Save