Array.map vs Array.from for transforming data.
const arr = Array.from({length: 1000}, (_, i) => i);Initializing...
| Test Case | Ops/sec | |
|---|---|---|
| Array.map | | ready |
| Array.from | | ready |
| for loop | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.