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

Function isSpecial

docs/app/js/sanddance-app.js:6897–6900  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

6895 return !!value && typeof value === "object";
6896}
6897function isSpecial(value) {
6898 var stringValue = Object.prototype.toString.call(value);
6899 return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
6900}
6901// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
6902var canUseSymbol = typeof Symbol === "function" && Symbol.for;
6903var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 0xeac7;

Callers 1

isMergeableObjectFunction · 0.70

Calls 1

isReactElementFunction · 0.70

Tested by

no test coverage detected