generate new test that did already exist & update all module snippets with declaration
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
module.exports = digits =>
|
||||
module.exports = isArmstrongNumber = digits =>
|
||||
(arr => arr.reduce((a, d) => a + parseInt(d) ** arr.length, 0) == digits)(
|
||||
(digits + '').split('')
|
||||
);
|
||||
Reference in New Issue
Block a user