(obj)
| 44 | Store.prototype = Object.create(null); |
| 45 | |
| 46 | function map3(obj) { |
| 47 | const map = new Store(); |
| 48 | if (!obj) { |
| 49 | return map; |
| 50 | } |
| 51 | |
| 52 | for (const key in obj) { |
| 53 | map[key] = obj[key]; |
| 54 | } |
| 55 | return map; |
| 56 | } |
| 57 | |
| 58 | console.log('map0: %j', map0({ foo: 'bar' })); |
| 59 | console.log('map1: %j', map1({ foo: 'bar' })); |
no outgoing calls
no test coverage detected
searching dependent graphs…