• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Agglu / softwaretesting / 19500927678

19 Nov 2025 12:14PM UTC coverage: 0.235%. First build
19500927678

push

github

Aleksanteri Heinonen
import functions to test manually so no more tricky node_modules implementations

0 of 224 branches covered (0.0%)

Branch coverage included in aggregate %.

1 of 201 new or added lines in 43 files covered. (0.5%)

1 of 201 relevant lines covered (0.5%)

0.01 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/difference.js
1
import baseDifference from './.internal/baseDifference.js'
2
import baseFlatten from './.internal/baseFlatten.js'
3
import isArrayLikeObject from './isArrayLikeObject.js'
4

5
/**
6
 * Creates an array of `array` values not included in the other given arrays
7
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
8
 * for equality comparisons. The order and references of result values are
9
 * determined by the first array.
10
 *
11
 * **Note:** Unlike `pullAll`, this method returns a new array.
12
 *
13
 * @since 0.1.0
14
 * @category Array
15
 * @param {Array} array The array to inspect.
16
 * @param {...Array} [values] The values to exclude.
17
 * @returns {Array} Returns the new array of filtered values.
18
 * @see union, unionBy, unionWith, without, xor, xorBy, xorWith,
19
 * @example
20
 *
21
 * difference([2, 1], [2, 3])
22
 * // => [1]
23
 */
24
function difference(array, ...values) {
NEW
25
  return isArrayLikeObject(array)
×
26
    ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
27
    : []
28
}
29

30
export default difference
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc