Codacy style changes for test files
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
const isArmstrongNumber = digits =>
|
||||
(arr => arr.reduce((a, d) => a + parseInt(d) ** arr.length, 0) == digits)(
|
||||
(digits + '').split('')
|
||||
);
|
||||
(arr => arr.reduce((a, d) => a + parseInt(d) ** arr.length, 0) == digits)(
|
||||
(digits + '').split('')
|
||||
);
|
||||
|
||||
module.exports = isArmstrongNumber;
|
||||
Reference in New Issue
Block a user