MCPcopy Index your code
hub / github.com/microsoft/SandDance / newMap

Function newMap

docs/app/js/sanddance-app.js:129539–129543  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

129537 return (0, _vegaDataflow.ingest)({});
129538}
129539function newMap(key) {
129540 const map = (0, _vegaUtil.fastmap)().test((t)=>t.exit);
129541 map.lookup = (t)=>map.get(key(t));
129542 return map;
129543}
129544(0, _vegaUtil.inherits)(DataJoin, (0, _vegaDataflow.Transform), {
129545 transform (_, pulse) {
129546 var df = pulse.dataflow, out = pulse.fork(pulse.NO_SOURCE | pulse.NO_FIELDS), item = _.item || defaultItemCreate, key = _.key || (0, _vegaDataflow.tupleid), map = this.value; // prevent transient (e.g., hover) requests from

Callers 1

transformFunction · 0.70

Calls 2

keyFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected