From c53670e342870a5f237eaeca9d673ed9367fb648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Tue, 16 Jun 2020 13:58:54 +0200 Subject: [PATCH] explicit the requirement of using filter --- subjects/using-filter.en.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/subjects/using-filter.en.md b/subjects/using-filter.en.md index 138693c7..959a5802 100644 --- a/subjects/using-filter.en.md +++ b/subjects/using-filter.en.md @@ -2,7 +2,6 @@ ### Instructions - - Create a function `filterShortStateName` that takes an array of strings and that returns the ones with less than 7 characters. @@ -33,12 +32,18 @@ objects and that returns only the ones which: - the key `tag` has at least one vowel. - the key `region` is not `'South'` -Example of an array of objects matching the criterias: - +> Example of an array of objects matching the criterias: +```js [ { tag: 'CA', name: 'California', capital: 'Sacramento', region: 'West' }, { tag: 'PA', name: 'Pennsylvania', capital: 'Harrisburg', region: 'Northeast' } ] +``` + +#### Special instruction + +The goal of this exercise is to learn to use `filter`, as such all your +solution **MUST** use `filter` ### Notions