Commit Graph

19 Commits

Author SHA1 Message Date
ayer21 e5b0c88297
New simple solution proposed
this solution is based on two nested loops, one that takes an item from the first array, and one that checks if it's equal to a value in the second array, by looping through the second array.
it also uses the splice method to remove the item from the array. so no need to create a new one.
2022-04-22 02:37:14 +00:00
Yasikhorram 5b5687862a correct the term spread operator to rest operator + reduce the space between . and If 2021-10-27 14:46:13 -05:00
Kevin Mulhern a1c56276ea Merge branch 'chore/switch-to-jest' into jest-solutions 2021-05-18 00:42:57 +01:00
Michael Frank 5708c3d85a Added jest
Removed generator-exercises folder as it breaks jest-codemods

run jest-codemods on .spec.js files, move generator-exercises back in

Change references from Jasmine to Jest in main readme

Update README with Jest specific language. Update some spec files with new syntax

update tests, multiple exercises

.gitignore: Added package-lock.json, package.json that were used when I ran code-blocks over the tests.

Standardised function declaration calls across exercises

fix typo in caesar.spec.js

Ignoring package-lock.json, package.json

Backtrack on .gitignore modification, add instructions to readme

move files from testing repo to this repo

Typo fixes, remove duplicate exercise folder

Remove solution from non-solution branch

Minor grammatical fixes

added trailing semicolon to all function and module exports

Fix words caught by search/replace action.

remove doubled semicolon.

Correct words caught by search/replace action.

Add missing semicolon.

Add .DS_Store to .gitignore

multiple files: Added a blank line at the end of each file

Ignore generator-exercise when linting exercise files

Update exercise number of each exercise

Update exercise number
2021-05-17 23:46:49 +01:00
Michael Frank ac4d2a94e5 Grammar cleanups, trailing semicolon for function expressions 2021-05-10 20:08:31 +12:00
Michael Frank 749a48adee Tweak matchers in removeFromArray, pull pigLatin solution from old branch 2021-04-30 22:12:52 +12:00
Michael Frank 2eb02ea212 update tests, multiple exercises 2021-03-10 00:12:25 +13:00
Michael Frank 7a001e0fdb run jest-codemods on .spec.js files, move generator-exercises back in 2021-03-03 15:25:29 +13:00
Roger 68691ab7a6 Added same type test to removeFromArray 2020-05-08 16:54:31 +10:00
Cody Loyd 66c87fc01b
Merge branch 'master' into removeFromArray-README-update 2019-11-27 09:17:40 -06:00
Anthony Bronkema 6f30194d16 updates function name to match exercise file 2019-08-19 14:22:59 -04:00
Uzay G 46a36d8d09
Added ...rest parameters as a link to deal with optional parameters
Rest parameters are already arrays unlike 'arguments' and they can be used in arrow expressions. Just find it a bit simpler
2019-08-12 08:48:12 +00:00
Étienne Boisseau-Sierra 00407bdee5 Transform 'let' in 'const' where needs be 2018-08-07 11:25:16 +01:00
Étienne Boisseau-Sierra 35f797f454 Capitalize 'Hint'-subtitles 2018-08-07 11:25:16 +01:00
Étienne Boisseau-Sierra 3a9251d55e Transform 'var' in 'let' 2018-08-07 11:25:16 +01:00
Cody Loyd 829730fb79 Revert "remove class based exercises"
This reverts commit 290e7f1da4.
2017-11-24 14:23:16 -06:00
Cody Loyd 290e7f1da4 remove class based exercises 2017-11-20 13:51:01 -06:00
Cody Loyd dd17d8ac8b add hints to exercises 2017-10-24 15:10:20 -05:00
Cody Loyd c501b322f8 remove numbering 2017-09-20 11:02:31 -05:00