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

Function map3

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

Source from the content-addressed store, hash-verified

44Store.prototype = Object.create(null);
45
46function 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
58console.log('map0: %j', map0({ foo: 'bar' }));
59console.log('map1: %j', map1({ foo: 'bar' }));

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…