MCPcopy Create free account
hub / github.com/TruthHun/BookStack / condense

Function condense

static/wangEditor/js/lib/jquery-2.2.1.js:2216–2235  ·  view source on GitHub ↗
( unmatched, map, filter, context, xml )

Source from the content-addressed store, hash-verified

2214}
2215
2216function condense( unmatched, map, filter, context, xml ) {
2217 var elem,
2218 newUnmatched = [],
2219 i = 0,
2220 len = unmatched.length,
2221 mapped = map != null;
2222
2223 for ( ; i < len; i++ ) {
2224 if ( (elem = unmatched[i]) ) {
2225 if ( !filter || filter( elem, context, xml ) ) {
2226 newUnmatched.push( elem );
2227 if ( mapped ) {
2228 map.push( i );
2229 }
2230 }
2231 }
2232 }
2233
2234 return newUnmatched;
2235}
2236
2237function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
2238 if ( postFilter && !postFilter[ expando ] ) {

Callers 2

setMatcherFunction · 0.70
superMatcherFunction · 0.70

Calls 1

filterFunction · 0.50

Tested by

no test coverage detected