method

filter

filter(elements, path)
public

Given an array of nodes it filters the array based on the path. The result is that when this method returns, the array will contain elements which match the path