Blog
JavaScript – String.prototype.times Imitation
One of my favorite things about JavaScript is the ability to use certain functions to do unexpected things. The following shows you the code that could be used to imitate Prototype’s corresponding function: Basically the above code creates a new array has a length of the specified number plus one. Read more…