MCPcopy Create free account
hub / github.com/danielstocks/react-sortable / isTextNode

Function isTextNode

bundle.js:5362–5364  ·  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

5360 * @return {boolean} Whether or not the object is a DOM text node.
5361 */
5362function isTextNode(object) {
5363 return isNode(object) && object.nodeType == 3;
5364}
5365
5366module.exports = isTextNode;
5367

Callers 1

containsNodeFunction · 0.85

Calls 1

isNodeFunction · 0.70

Tested by

no test coverage detected