Blog

JavaScript – Indenting Text

One thing I needed to do recently was indent a series of strings with a variable number of tabs or spaces. Thusly, I decided to create the following function which can be used by anyone that would need such a function: The JS annotation pretty much sums up how you Read more…

By Chris West, ago
Blog

JavaScript – Range Array Function

A cool function that exists in Python is the range function which actually creates a list of numbers within the specified range. Once again, since I love JavaScript, here a quick imitation of this function: Of course, this is probably not a complete imitation, but as you can see it Read more…

By Chris West, ago
Blog

JavaScript – Better Array Builder

Yesterday I wrote this post about a way to loosely imitate having array comprehensions in JavaScript. After thinking about it a bit more, I thought it would be best to change the function to be more like this: I wanted to remove the declaration of a variable which will be Read more…

By Chris West, ago