MCPcopy
hub / github.com/chartjs/Chart.js / swap

Function swap

src/controllers/controller.bar.js:244–246  ·  view source on GitHub ↗
(orig, v1, v2)

Source from the content-addressed store, hash-verified

242}
243
244function swap(orig, v1, v2) {
245 return orig === v1 ? v2 : orig === v2 ? v1 : orig;
246}
247
248function startEnd(v, start, end) {
249 return v === 'start' ? start : v === 'end' ? end : v;

Callers 1

parseEdgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected