Fun with String.replace()
It's time again for another fun exploration of the depths of Javascript. Did you know you could pass a function to the String.replace()
method? It can make some complex regex situations much easier.
Just this guy, y'know?
It's time again for another fun exploration of the depths of Javascript. Did you know you could pass a function to the String.replace()
method? It can make some complex regex situations much easier.
By way of showing what I intend to do here, let's talking about sorting associative arrays in JavaScript!
TL;DR - I made a github blog out of Jeykll (using this guide) to talk about things related to web development. Mostly, I tend to find that things on the internet aren't explained to my liking, so this blog is for my explanations or experiences, which may or may not help others.