MCPcopy Create free account
hub / github.com/Lucifier129/react-lite / isTextNode

Function isTextNode

examples/simple/react.js:18367–18369  ·  view source on GitHub ↗

* @param {*} object The object to check. * @return {boolean} Whether or not the object is a DOM text node.

(object)

Source from the content-addressed store, hash-verified

18365 * @return {boolean} Whether or not the object is a DOM text node.
18366 */
18367function isTextNode(object) {
18368 return isNode(object) && object.nodeType == 3;
18369}
18370
18371module.exports = isTextNode;
18372},{"144":144}],146:[function(_dereq_,module,exports){

Callers 1

containsNodeFunction · 0.85

Calls 1

isNodeFunction · 0.85

Tested by

no test coverage detected