MCPcopy Index your code
hub / github.com/bqplot/bqplot / getDate

Function getDate

js/src/utils.ts:98–104  ·  view source on GitHub ↗
(elem: undefined | null | number | string)

Source from the content-addressed store, hash-verified

96}
97
98export function getDate(elem: undefined | null | number | string): Date | null {
99 if (elem === undefined || elem === null) {
100 return null;
101 }
102
103 return new Date(elem);
104}
105
106export function applyStyles(d3el, styles) {
107 Object.keys(styles).forEach((key) => d3el.style(key, styles[key]));

Callers 2

update_domainsMethod · 0.90
positionCenterMethod · 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…