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);
}
I prefer readable code than clever one liners.
I 100% agree with that for work-related coding. But for challenges, I try to do it as minimized as I'm able to.