MCPcopy
hub / github.com/microsoft/SandDance / pluck

Function pluck

docs/app/js/sanddance-app.js:142982–142985  ·  view source on GitHub ↗
(data6, name)

Source from the content-addressed store, hash-verified

142980}
142981const accessors = {};
142982function pluck(data6, name) {
142983 const accessor = accessors[name] || (accessors[name] = (0, _vegaUtil.field)(name));
142984 return (0, _vegaUtil.isArray)(data6) ? data6.map(accessor) : accessor(data6);
142985}
142986function array(seq) {
142987 return (0, _vegaUtil.isArray)(seq) || ArrayBuffer.isView(seq) ? seq : null;
142988}

Callers

nothing calls this directly

Calls 1

accessorFunction · 0.70

Tested by

no test coverage detected