This step probably has a simple solution yet for some reason, I can’t think of one. All threads I’ve searched are outdated. Can anyone give me hints on how to solve this step? Thanks!
Your code so far
nodupes: nums => {}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 OPR/106.0.0.0
Challenge Information:
Learn Functional Programming by Building a Spreadsheet - Step 102
one way to check is to usefilter and indexOf, as indexOf gives you the first index at which something appears, if the index returned by indexOf is not equal to the current index, than you have a duplicate