MCPcopy
hub / github.com/mongodb/node-mongodb-native / createPositionalPseudo

Function createPositionalPseudo

docs/2.2/js/jquery.js:1411–1427  ·  view source on GitHub ↗

* Returns a function to use in pseudos for positionals * @param {Function} fn

( fn )

Source from the content-addressed store, hash-verified

1409 * @param {Function} fn
1410 */
1411function createPositionalPseudo( fn ) {
1412 return markFunction(function( argument ) {
1413 argument = +argument;
1414 return markFunction(function( seed, matches ) {
1415 var j,
1416 matchIndexes = fn( [], seed.length, argument ),
1417 i = matchIndexes.length;
1418
1419 // Match elements found at the specified indexes
1420 while ( i-- ) {
1421 if ( seed[ (j = matchIndexes[i]) ] ) {
1422 seed[j] = !(matches[j] = seed[j]);
1423 }
1424 }
1425 });
1426 });
1427}
1428
1429/**
1430 * Detect xml

Callers 1

jquery.jsFile · 0.70

Calls 2

markFunctionFunction · 0.70
fnFunction · 0.50

Tested by

no test coverage detected