getpreviousuntil (npm): Get all previous siblings of a DOM element until a selector is found
Keywords: dom|window|document|element|selector|previousElementSibling|siblings|matches|array|push