MCPcopy Index your code
hub / github.com/plotly/dash / convert

Function convert

components/dash-core-components/src/components/Input.tsx:23–23  ·  view source on GitHub ↗
(val: unknown)

Source from the content-addressed store, hash-verified

21
22const isNumeric = (val: unknown): val is number => fastIsNumeric(val);
23const convert = (val: unknown) => (isNumeric(val) ? +val : NaN);
24
25const isEquivalent = (v1: number, v2: number) =>
26 v1 === v2 || (isNaN(v1) && isNaN(v2));

Callers 2

InputFunction · 0.70
onEventFunction · 0.70

Calls 1

isNumericFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…