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.

14 lines
482 B

## Pick Omit
5 years ago
### 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
5 years ago
### Notions
- [object](https://devdocs.io/javascript/global_objects/object)