Matt's DOM Utils Matt's DOM Utils (Utils)



A module containing various methods that traverse document tree ancestors.

  1. Filter Methods
  2. Retrieval Methods
  3. Identity Methods

Filter Methods

These methods are “filter” methods, meaning they will return an array-like object of results from each callback invocation. A result of true will collect the object passed; a truthy result will collect the value returned; a falsey result will not be collected. An example follows.

function handler(
	var result = false;
	if (obj && === "unique") {
		// criterion met
		result = true;
	return result;

Retrieval Methods

Identity Methods