MCPcopy Create free account
hub / github.com/frank-lam/fullstack-tutorial / condense

Function condense

notes/docsify/unpkg/gotop/jquery-2.1.0.js:2126–2145  ·  view source on GitHub ↗
( unmatched, map, filter, context, xml )

Source from the content-addressed store, hash-verified

2124}
2125
2126function condense( unmatched, map, filter, context, xml ) {
2127 var elem,
2128 newUnmatched = [],
2129 i = 0,
2130 len = unmatched.length,
2131 mapped = map != null;
2132
2133 for ( ; i < len; i++ ) {
2134 if ( (elem = unmatched[i]) ) {
2135 if ( !filter || filter( elem, context, xml ) ) {
2136 newUnmatched.push( elem );
2137 if ( mapped ) {
2138 map.push( i );
2139 }
2140 }
2141 }
2142 }
2143
2144 return newUnmatched;
2145}
2146
2147function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
2148 if ( postFilter && !postFilter[ expando ] ) {

Callers 2

setMatcherFunction · 0.85
superMatcherFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected