You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Urmas Rist d8214e8598
pick-omit: grammar
3 years ago
..
README.md pick-omit: grammar 3 years ago

README.md

Pick Omit

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 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

Notions