#codesnippet #javascript
Usually lines up with the amount of CPU cores available (docs).
navigator.hardwareConcurrency