MCPcopy Index your code
hub / github.com/jquery/jquery / condense

Function condense

dist-module/jquery.factory.module.js:2020–2039  ·  view source on GitHub ↗
( unmatched, map, filter, context, xml )

Source from the content-addressed store, hash-verified

2018}
2019
2020function condense( unmatched, map, filter, context, xml ) {
2021 var elem,
2022 newUnmatched = [],
2023 i = 0,
2024 len = unmatched.length,
2025 mapped = map != null;
2026
2027 for ( ; i < len; i++ ) {
2028 if ( ( elem = unmatched[ i ] ) ) {
2029 if ( !filter || filter( elem, context, xml ) ) {
2030 newUnmatched.push( elem );
2031 if ( mapped ) {
2032 map.push( i );
2033 }
2034 }
2035 }
2036 }
2037
2038 return newUnmatched;
2039}
2040
2041function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
2042 if ( postFilter && !postFilter[ jQuery.expando ] ) {

Callers 2

setMatcherFunction · 0.70
superMatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected