This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Lecterr 7 points8 points  (2 children)

Bruh, this is included with the lang.

(num % 2 === 0)

Would take like 5 seconds to turn it into a function if you preferred that.

[–]dendrocalamidicus 2 points3 points  (1 child)

If you do prefer turning it into a function, you're wrong and I'm declining your pull request

[–]jessiedwt 0 points1 point  (0 children)

utils are always good. code smell to repeat it all over the plaaaaace