MCPcopy Create free account
hub / github.com/bqplot/bqplot / constant

Function constant

js/src/Markers.ts:249–253  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

247}
248
249function constant(x) {
250 return function () {
251 return x;
252 };
253}
254
255function functor(x) {
256 return typeof x === 'function' ? x : constant(x);

Callers 1

functorFunction · 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…