From 91139e838fc55954d15148fe44e16e679f4fa57d Mon Sep 17 00:00:00 2001 From: Urmas Rist Date: Fri, 21 Jan 2022 10:31:19 +0200 Subject: [PATCH] Specify that only a single string might be given. --- subjects/pick-omit/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subjects/pick-omit/README.md b/subjects/pick-omit/README.md index adb865d4..26f2813d 100644 --- a/subjects/pick-omit/README.md +++ b/subjects/pick-omit/README.md @@ -2,11 +2,11 @@ ### Instructions -Create a `pick` function that takes an object and an array of strings. -This function returns a new object that contains only the key/value pairs, whose key matches with a string in the array, from the object passed as an argument. +Create a `pick` function that takes an object and a string or array of strings. +This function returns a new object that contains only the key/value pairs, whose key matches with the string or a string in the array, from the object passed as an argument. -Create a `omit` function that takes an object and an array of strings. -This function returns a new object that contains only the key/value pairs, whose key doesn't match with a single string in the array, from the object passed as an argument. +Create a `omit` function that takes an object and a a string or array of strings. +This function returns a new object that contains only the key/value pairs, whose key doesn't match with the string or a single string in the array, from the object passed as an argument. > Those functions are pure and must not modify the given object