MCPcopy Create free account
hub / github.com/microsoft/SandDance / isValid

Function isValid

docs/app/js/sanddance-app.js:109036–109036  ·  view source on GitHub ↗
(_)

Source from the content-addressed store, hash-verified

109034 (0, _vegaUtil.error)("No HTTP fetch method available.");
109035}
109036const isValid = (_)=>_ != null && _ === _;
109037const isBoolean = (_)=>_ === "true" || _ === "false" || _ === true || _ === false;
109038const isDate = (_)=>!Number.isNaN(Date.parse(_));
109039const isNumber = (_)=>!Number.isNaN(+_) && !(_ instanceof Date);

Callers 1

inferTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected