From b70f111c296f8bcd8d6266b3577b5e3f56f6ccd3 Mon Sep 17 00:00:00 2001 From: Michele Sessa Date: Fri, 28 Apr 2023 11:45:37 +0100 Subject: [PATCH] docs(manipulate-entries): add prototype types for expected functions --- subjects/manipulate-entries/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subjects/manipulate-entries/README.md b/subjects/manipulate-entries/README.md index 5ead2ab7..f81ea652 100644 --- a/subjects/manipulate-entries/README.md +++ b/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: