you are viewing a single comment's thread
view the rest of the comments
[–] 13 points 1 year ago* (1 child)

I'll join in

const isEven = (n) 
  => !["1","3","5","7","9"]
    .includes(Math.round(n).toString().slice(-1)) 
  • source
  • hideshow 1 child comment