diff --git a/subjects/pick-omit/README.md b/subjects/pick-omit/README.md index a8ea3308..adb865d4 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 keys. -This function create a new object that pick only the keys, in the second argument, from the object passed as argument. +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 `omit` function that takes an object and keys. -This function create a new object that omit only the keys, in the second argument, from the object passed as 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. > Those functions are pure and must not modify the given object