(obj)
| 5 | const suite = new Benchmark.Suite(); |
| 6 | |
| 7 | function map0(obj) { |
| 8 | const map = {}; |
| 9 | if (!obj) { |
| 10 | return map; |
| 11 | } |
| 12 | |
| 13 | for (const key in obj) { |
| 14 | map[key] = obj[key]; |
| 15 | } |
| 16 | return map; |
| 17 | } |
| 18 | |
| 19 | function map1(obj) { |
| 20 | const map = Object.create(null); |
no outgoing calls
no test coverage detected
searching dependent graphs…