MCPcopy
hub / github.com/dc-js/dc.js / pluck

Function pluck

src/core/utils.js:29–34  ·  view source on GitHub ↗
(n, f)

Source from the content-addressed store, hash-verified

27 * @returns {Function}
28 */
29export const pluck = function (n, f) {
30 if (!f) {
31 return function (d) { return d[n]; };
32 }
33 return function (d, i) { return f.call(d, d[n], i); };
34};
35
36/**
37 * @namespace utils

Callers 15

constructorMethod · 0.90
_findLayerByNameMethod · 0.90
xAxisMinMethod · 0.90
xAxisMaxMethod · 0.90
_ordinalXDomainMethod · 0.90
constructorMethod · 0.90
renderMethod · 0.90
constructorMethod · 0.90
renderMethod · 0.90
_drawDotsMethod · 0.90
_drawLabelsMethod · 0.90
_doRenderTitleMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…