MCPcopy Index your code
hub / github.com/mailru/FileAPI / diff

Function diff

tests/qunit/qunit.js:1465–1479  ·  view source on GitHub ↗
( a, b )

Source from the content-addressed store, hash-verified

1463
1464// returns a new Array with the elements that are in a but not in b
1465function diff( a, b ) {
1466 var i, j,
1467 result = a.slice();
1468
1469 for ( i = 0; i < result.length; i++ ) {
1470 for ( j = 0; j < b.length; j++ ) {
1471 if ( result[i] === b[j] ) {
1472 result.splice( i, 1 );
1473 i--;
1474 break;
1475 }
1476 }
1477 }
1478 return result;
1479}
1480
1481function extend( a, b ) {
1482 for ( var prop in b ) {

Callers 2

checkPollutionFunction · 0.85
qunit.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected