Ben Cherry 11/5/2009

JS Find-and-Replace with Split/Join

Read Original

This article discusses JavaScript string manipulation techniques, specifically comparing the performance of using String.split() and String.join() versus String.replace() for static find-and-replace operations. It includes a crucial update noting that modern browser optimizations have made replace() faster, rendering the original split/join advice obsolete.

JS Find-and-Replace with Split/Join

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week