var appState = "active";
var regex = /inactive|background/;
var arr = ['inactive', 'background'];
array.some(v => v === appState)
regex.test(appState);
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