Select All Previous Siblings Until selector .prevUntil([selector], [filter])

.prevUntil([selector], [filter])

selector & filter are optional
e.g. $("span").prevUntil()

.prevUntil([selector], [filter]) will select all previous siblings up to but not included the one matching selector, if filter is provided then previous siblings should match filter too.

If no arugments are provided i.e. (selector & filter), then .prevUntil() is equivalent to .prevAll()
Example 1: $("span").prevUntil("div") will find all previous siblings of each <span> up to but not included the first <div> sibling.
<div>A</div>
<div>B</div> // until first <div> 
<b>C</b>
<p>D</p>
<span>E</span>
<div>F</div> 
Example 2: $("span").prevUntil("div", "p") will find all previous siblings of type <p> for each <span> up to but not included the first <div> sibling.
<div>A</div>
<div>B</div> // until first <div> 
<b>C</b>   // NOT of type <p> 
<p>D</p>  // of type <p> 
<span>E</span>
<div>F</div> 
jQuery traversing tree .prevUntil([selector], [filter])