replace all whitespaces from string. what is faster? replace() with regex with global flag or without global flag and using a loop?
Less than or equal to versus less than
New benchmark Your benchmarks
Source code: GitHub/MeasureThat.net
Report issues: MeasureThat.net/Issues
Based on: Benchmark.js (v2.1.1)
Facebook page: https://www.facebook.com/MeasureThat.Net