update luhnCheck example, add 2 tests, luhnCheck & mapObject

This commit is contained in:
Stefan Feješ
2018-01-10 14:48:59 +01:00
parent 51260a85a8
commit 72b4a0d12a
3 changed files with 6 additions and 1 deletions

View File

@ -23,6 +23,6 @@ const luhnCheck = num => {
```js
luhnCheck('4485275742308327'); // true
luhnCheck(6011329933655299); // true
luhnCheck(6011329933655299); // false
luhnCheck(123456789); // false
```