But I’ve been stuck on the findInvalidCards() function for a day now, so I’m asking for your help.
I can’t get findInvalidCards() to return anything other than [ undefined ], and I need it to return an array of names of arrays that contain an invalid credit card number.
I have successfully made the function which determines whether or not an array contains a valid credit card number - that’s the one called validateCred right before findInvalidCards. validateCred is made to return “true” if the inputted array contains a valid number, and “false” if it doesn’t.
Here’s the GitHub:
Thanks in advance!