MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / isTextNode

Function isTextNode

code/composition/public/app.js:667–669  ·  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

665 * @return {boolean} Whether or not the object is a DOM text node.
666 */
667function isTextNode(object) {
668 return isNode(object) && object.nodeType == 3;
669}
670
671module.exports = isTextNode;
672},{"./isNode":14}],16:[function(require,module,exports){

Callers 1

containsNodeFunction · 0.70

Calls 1

isNodeFunction · 0.70

Tested by

no test coverage detected