Hello, Im trying to implement Luhn algorithm in Credit card checker project, but I dont know how to

return an array that is created by .map()

```
const valid5 = [4, 5, 3, 9, 4, 0, 4, 9, 6, 7, 8, 6, 9, 6, 6, 6];
`function validateCred(array) {
emptyArray = [];
everyOther = [];
modified = [];
for (let i=array.length-1; i > 0; i--) {
emptyArray.push(array[i]);
}
for (let j=1; j < emptyArray.length; j += 2) {
everyOther.push(emptyArray[j]);
}
everyOther.map(function multiply(s){
let multiplied = s*2;
if (multiplied > 9){
return multiplied - 9;
}else{
return multiplied;
}
})
return [emptyArray, everyOther];
}
console.log(validateCred(valid5))``Preformatted text`
```