common-ancestor
0.1.2 • Public • Published common-ancestor
Find the common ancestor of multiple DOM nodes
Example
var commonAncestors = require("common-ancestor")
var document = require("global/document")
var head = document.head
var body = document.body
var ancestor = commonAncestors(head, body)
console.log("ancestor?", ancestor)
Installation
npm install common-ancestor
Contributors
MIT Licenced
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads