From 5b18cc31fa6f77c1ff08cc2f3cb8767c405336b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Mon, 22 Jun 2020 14:35:54 +0200 Subject: [PATCH] clarify immutability requirements --- subjects/pick-omit/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subjects/pick-omit/README.md b/subjects/pick-omit/README.md index 6b78331b..a8ea3308 100644 --- a/subjects/pick-omit/README.md +++ b/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