RE: RE: CodeWars Python Challenge: Does my number look big in this?
You are viewing a single comment's thread from:

RE: CodeWars Python Challenge: Does my number look big in this?

Words
38
Reading
1 min
Listen
Play
4y

I used to do challenges there but for javascript, haven't been on Code Wars for well over a year, tnx for the reminder. Also, I always try to make one-liners.

In JS it should look smth like this

function narcissistic (val){
return val === [...val.toString()].reduce((x,y,z,arr) => parseInt(x) + y**arr.length);
}