( a, b )
| 1463 | |
| 1464 | // returns a new Array with the elements that are in a but not in b |
| 1465 | function 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 | |
| 1481 | function extend( a, b ) { |
| 1482 | for ( var prop in b ) { |
no outgoing calls
no test coverage detected