Sha256: 0bcc8539f587ef13fdec91b9c0136831c4da4dbd89070ca9e453ebbeefeebc82
Contents?: true
Size: 287 Bytes
Versions: 26
Compression:
Stored size: 287 Bytes
Contents
function isDescendantOrSelf(potentialDescendant, potentialAncestor) { let el = potentialDescendant; do { if (el === potentialAncestor) { return true; } el = el.parentElement; }while (el) return false; } export { isDescendantOrSelf };
Version data entries
26 entries across 26 versions & 1 rubygems