Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Knowing javascript... this makes absolute sense to me. It will probably evolve into a new framework soon.
-
wbhob2898yBasically since I'm not on that list, the expression will be false. BUT THAT IS THE INTENDED BEHAVIOR, because undefined is a falsey value. If it's not a number or string in the parseInt(), it comes out to NaN and that is not equivalent to 0... maybe I should have used ===
-
The source code for Is Odd is also interesting. I've never seen a double tidal (~~) used in JS before
-
@itsdaniel0 its an old hack to replace Math.floor - double tilde used to be faster in spidermonkey, but its slower in V8
There is code reuse and then there is stupidity. This npm module has 4 dependents and 2 dependencies.
undefined