UNPKG

@versionone/ui

Version:

Open-source and community supported collection of common UI components built with React. As an open-sourced and community supported project, VersionOne UI is not formally supported by VersionOne.

17 lines (14 loc) 341 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var isDescendant = exports.isDescendant = function isDescendant(parent, child) { var node = child.parentNode; while (node) { if (node === parent) { return true; } node = node.parentNode; } return false; };