MCPcopy Create free account
hub / github.com/node-modules/utility / map2

Function map2

benchmark/map.cjs:31–41  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

29}
30
31function map2(obj) {
32 const map = new Map();
33 if (!obj) {
34 return map;
35 }
36
37 for (const key in obj) {
38 map.set(key, obj[key]);
39 }
40 return map;
41}
42
43function Store() {}
44Store.prototype = Object.create(null);

Callers 1

map.cjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…