Joined November 2013
·

Blaise Liu

Senior Web Developer at American Interactive Expert, inc.
·
Charleston, West Virginia Area
·
·
·

Of course we have more tools with jQuery available. This piece of pro-tip realizes the function with JavaScript only.

But thanks for the input.

Posted to Get Lazy in javascript coding over 1 year ago

I am also hesitant about the number to string conversions. They are not that lazy but most important, it could confuse some inexperienced programmers. To make my code readable to others, I would accept (and encourage) the lazy way to create empty array and object, but not the type conversions suggested.

Achievements
396 Karma
151,742 Total ProTip Views