(obj)
| 17 | } |
| 18 | |
| 19 | function map1(obj) { |
| 20 | const map = Object.create(null); |
| 21 | if (!obj) { |
| 22 | return map; |
| 23 | } |
| 24 | |
| 25 | for (const key in obj) { |
| 26 | map[key] = obj[key]; |
| 27 | } |
| 28 | return map; |
| 29 | } |
| 30 | |
| 31 | function map2(obj) { |
| 32 | const map = new Map(); |
no outgoing calls
no test coverage detected
searching dependent graphs…