Browse Source

clarify immutability requirements

content-update
Clément 4 years ago committed by GitHub
parent
commit
5b18cc31fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      subjects/pick-omit/README.md

6
subjects/pick-omit/README.md

@ -3,10 +3,12 @@
### Instructions
Create a `pick` function that takes an object and keys.
This function will pick only the keys, in the second argument, from the object passed as argument.
This function create a new object that pick only the keys, in the second argument, from the object passed as argument.
Create a `omit` function that takes an object and keys.
This function will omit only the keys, in the second argument, from the object passed as argument.
This function create a new object that omit only the keys, in the second argument, from the object passed as argument.
> Those functions are pure and must not modify the given object
### Notions

Loading…
Cancel
Save