Joined November 2013
0 zdfer mextupleu3bexrr3szkfrkbdj3chrcr3youxf8zsotmf0kvtoxe7u7xapdqodnqquhhlpg

Blaise Liu

Senior Web Developer at American Interactive Expert, inc.
Senior Web Developer
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.

396 Karma
55,905 Total ProTip Views