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

Function defaultParser

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

Source from the content-addressed store, hash-verified

107107 return _ == null || _ === "" ? null : !_ || _ === "false" || _ === "0" ? false : !!_;
107108}
107109const defaultParser = (_)=>isNumber(_) ? _ : isDate(_) ? _ : Date.parse(_);
107110function toDate(_, parser) {
107111 parser = parser || defaultParser;
107112 return _ == null || _ === "" ? null : parser(_);

Callers

nothing calls this directly

Calls 2

isNumberFunction · 0.70
isDateFunction · 0.70

Tested by

no test coverage detected