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.
 
 
 
 
 
 

482 B

Pick Omit

Instructions

Create two functions which taken 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

Notions