src/utilities.js
function exists(el, arr) {
  for (var i = 0; i < arr.length; i++) {
    if (arr[i].element.isEqualNode(el))
      return arr[i];
  }
  return false;
}
function exists(el, arr) {
  for (var i = 0; i < arr.length; i++) {
    if (arr[i].element.isEqualNode(el))
      return arr[i];
  }
  return false;
}
function exists ( el , arr ) { for ( var i = 0 ; i < arr . length ; i ++ ) { if ( arr [ i ] . element . isEqualNode ( el ) ) return arr [ i ] ; } return false ; }
Check if element exists in a Array of NodeItems
@param {NodeItem} current nodeItem to check
@param {Array} array of NodeItems
@returns {NodeItem} NodeItem exitent in array
Check if element exists in a Array of NodeItems