Joined November 2013
·
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.
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.