var example = 'AgreementChangeId'
var result = example.split(/(?=[A-Z])/).join(' ');
var result = example.replace(/([A-Z]+)/g, ' $1')
FAQ: FAQ
Source code: GitHub/MeasureThat.net
Report issues: MeasureThat.net/Issues
Based on: Benchmark.js
Facebook page: https://www.facebook.com/MeasureThat.Net
Python benchmarks support: Pyodide