RegExp.prototype.exec() adds extra properties to return

When implementing a router, I ran into an interesting issue regarding RegExp.prototype.exec(). Let's look at an example. var regexp = /\/foo\/bar/; var match = regexp. »