src/shared/helpers.js
/**
 * @function
 * Tests whether an object is a DOM node.
 * Via: https://stackoverflow.com/a/384380/467760
 */
@function
Tests whether an object is a DOM node.
@function Tests whether an object is a DOM node .
function isNode(o) {
  return typeof Node === 'object'
    ? o instanceof Node
    : o &&
        typeof o === 'object' &&
        typeof o.nodeType === 'number' &&
        typeof o.nodeName === 'string';
}
function isNode ( o ) { return typeof Node === 'object' ? o instanceof Node : o && typeof o === 'object' && typeof o . nodeType === 'number' && typeof o . nodeName === 'string' ; }
@function
 Tests whether an object is a DOM node.
@function Tests whether an object is a DOM node .