DEV Community

Discussion on: Daily Challenge #183 - Automorphic Numbers

Collapse
 
dreamardor profile image
Dan B. • Edited

JavaScript ES6 Solution:

const automorphic = n => (''+n**2).endsWith(n);
Enter fullscreen mode Exit fullscreen mode