mirror of https://github.com/01-edu/public.git
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.
Michele Sessa
42881f3dee
|
2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago |
README.md
Pick Omit
Instructions
Create two functions which takes an object and a string or array of strings. They should return a new object which:
pick
: contains only those keys which appear in the string or array of strings.omit
: contains only those keys which do not match the string, or do not appear in the array of strings.
Those functions are pure and must not modify the given object