Do pure functions exist in JavaScript?
Robin Pokorny
863

thanks for this fun article

More simply, [Symbol.toPrimitive] could have been replaced by valueOf which is there since ECMAScript 1.

I would not have used Number.isInteger() as it can so easily be tricked with:

Number.isInteger = () => true;

The good old typeof is there way more secure ;-)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.