.replace is 3 to 15 times faster (Chrome). Just tested.
How does this solution compare performance-wise to a simple .replace? I would imagine turning a long sequence into an array and back into a string a costly operation.
.replace
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
.replace is 3 to 15 times faster (Chrome). Just tested.
How does this solution compare performance-wise to a simple
.replace
? I would imagine turning a long sequence into an array and back into a string a costly operation.This comment is hidden because it contains spoiler information about the solution