| [a762898] | 1 | import { ValueIteratee } from '../_internal/ValueIteratee.mjs';
|
|---|
| 2 |
|
|---|
| 3 | /**
|
|---|
| 4 | * Creates an array of array values not included in the other given arrays using an iteratee function.
|
|---|
| 5 | *
|
|---|
| 6 | * @template T1, T2
|
|---|
| 7 | * @param {ArrayLike<T1> | null | undefined} array The array to inspect
|
|---|
| 8 | * @param {ArrayLike<T2>} values The values to exclude
|
|---|
| 9 | * @param {ValueIteratee<T1 | T2>} iteratee The iteratee invoked per element
|
|---|
| 10 | * @returns {T1[]} Returns the new array of filtered values
|
|---|
| 11 | * @example
|
|---|
| 12 | * differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor)
|
|---|
| 13 | * // => [1.2]
|
|---|
| 14 | */
|
|---|
| 15 | declare function differenceBy<T1, T2>(array: ArrayLike<T1> | null | undefined, values: ArrayLike<T2>, iteratee: ValueIteratee<T1 | T2>): T1[];
|
|---|
| 16 | /**
|
|---|
| 17 | * Creates an array of array values not included in the other given arrays using an iteratee function.
|
|---|
| 18 | *
|
|---|
| 19 | * @template T1, T2, T3
|
|---|
| 20 | * @param {ArrayLike<T1> | null | undefined} array The array to inspect
|
|---|
| 21 | * @param {ArrayLike<T2>} values1 The first array of values to exclude
|
|---|
| 22 | * @param {ArrayLike<T3>} values2 The second array of values to exclude
|
|---|
| 23 | * @param {ValueIteratee<T1 | T2 | T3>} iteratee The iteratee invoked per element
|
|---|
| 24 | * @returns {T1[]} Returns the new array of filtered values
|
|---|
| 25 | * @example
|
|---|
| 26 | * differenceBy([2.1, 1.2], [2.3], [1.4], Math.floor)
|
|---|
| 27 | * // => []
|
|---|
| 28 | */
|
|---|
| 29 | declare function differenceBy<T1, T2, T3>(array: ArrayLike<T1> | null | undefined, values1: ArrayLike<T2>, values2: ArrayLike<T3>, iteratee: ValueIteratee<T1 | T2 | T3>): T1[];
|
|---|
| 30 | /**
|
|---|
| 31 | * Creates an array of array values not included in the other given arrays using an iteratee function.
|
|---|
| 32 | *
|
|---|
| 33 | * @template T1, T2, T3, T4
|
|---|
| 34 | * @param {ArrayLike<T1> | null | undefined} array The array to inspect
|
|---|
| 35 | * @param {ArrayLike<T2>} values1 The first array of values to exclude
|
|---|
| 36 | * @param {ArrayLike<T3>} values2 The second array of values to exclude
|
|---|
| 37 | * @param {ArrayLike<T4>} values3 The third array of values to exclude
|
|---|
| 38 | * @param {ValueIteratee<T1 | T2 | T3 | T4>} iteratee The iteratee invoked per element
|
|---|
| 39 | * @returns {T1[]} Returns the new array of filtered values
|
|---|
| 40 | * @example
|
|---|
| 41 | * differenceBy([2.1, 1.2, 3.5], [2.3], [1.4], [3.2], Math.floor)
|
|---|
| 42 | * // => []
|
|---|
| 43 | */
|
|---|
| 44 | declare function differenceBy<T1, T2, T3, T4>(array: ArrayLike<T1> | null | undefined, values1: ArrayLike<T2>, values2: ArrayLike<T3>, values3: ArrayLike<T4>, iteratee: ValueIteratee<T1 | T2 | T3 | T4>): T1[];
|
|---|
| 45 | /**
|
|---|
| 46 | * Creates an array of array values not included in the other given arrays using an iteratee function.
|
|---|
| 47 | *
|
|---|
| 48 | * @template T1, T2, T3, T4, T5
|
|---|
| 49 | * @param {ArrayLike<T1> | null | undefined} array The array to inspect
|
|---|
| 50 | * @param {ArrayLike<T2>} values1 The first array of values to exclude
|
|---|
| 51 | * @param {ArrayLike<T3>} values2 The second array of values to exclude
|
|---|
| 52 | * @param {ArrayLike<T4>} values3 The third array of values to exclude
|
|---|
| 53 | * @param {ArrayLike<T5>} values4 The fourth array of values to exclude
|
|---|
| 54 | * @param {ValueIteratee<T1 | T2 | T3 | T4 | T5>} iteratee The iteratee invoked per element
|
|---|
| 55 | * @returns {T1[]} Returns the new array of filtered values
|
|---|
| 56 | * @example
|
|---|
| 57 | * differenceBy([2.1, 1.2, 3.5, 4.8], [2.3], [1.4], [3.2], [4.1], Math.floor)
|
|---|
| 58 | * // => []
|
|---|
| 59 | */
|
|---|
| 60 | declare function differenceBy<T1, T2, T3, T4, T5>(array: ArrayLike<T1> | null | undefined, values1: ArrayLike<T2>, values2: ArrayLike<T3>, values3: ArrayLike<T4>, values4: ArrayLike<T5>, iteratee: ValueIteratee<T1 | T2 | T3 | T4 | T5>): T1[];
|
|---|
| 61 | /**
|
|---|
| 62 | * Creates an array of array values not included in the other given arrays using an iteratee function.
|
|---|
| 63 | *
|
|---|
| 64 | * @template T1, T2, T3, T4, T5, T6
|
|---|
| 65 | * @param {ArrayLike<T1> | null | undefined} array The array to inspect
|
|---|
| 66 | * @param {ArrayLike<T2>} values1 The first array of values to exclude
|
|---|
| 67 | * @param {ArrayLike<T3>} values2 The second array of values to exclude
|
|---|
| 68 | * @param {ArrayLike<T4>} values3 The third array of values to exclude
|
|---|
| 69 | * @param {ArrayLike<T5>} values4 The fourth array of values to exclude
|
|---|
| 70 | * @param {ArrayLike<T6>} values5 The fifth array of values to exclude
|
|---|
| 71 | * @param {ValueIteratee<T1 | T2 | T3 | T4 | T5 | T6>} iteratee The iteratee invoked per element
|
|---|
| 72 | * @returns {T1[]} Returns the new array of filtered values
|
|---|
| 73 | * @example
|
|---|
| 74 | * differenceBy([2.1, 1.2, 3.5, 4.8, 5.3], [2.3], [1.4], [3.2], [4.1], [5.8], Math.floor)
|
|---|
| 75 | * // => []
|
|---|
| 76 | */
|
|---|
| 77 | declare function differenceBy<T1, T2, T3, T4, T5, T6>(array: ArrayLike<T1> | null | undefined, values1: ArrayLike<T2>, values2: ArrayLike<T3>, values3: ArrayLike<T4>, values4: ArrayLike<T5>, values5: ArrayLike<T6>, iteratee: ValueIteratee<T1 | T2 | T3 | T4 | T5 | T6>): T1[];
|
|---|
| 78 | /**
|
|---|
| 79 | * Creates an array of array values not included in the other given arrays using an iteratee function.
|
|---|
| 80 | *
|
|---|
| 81 | * @template T1, T2, T3, T4, T5, T6, T7
|
|---|
| 82 | * @param {ArrayLike<T1> | null | undefined} array The array to inspect
|
|---|
| 83 | * @param {ArrayLike<T2>} values1 The first array of values to exclude
|
|---|
| 84 | * @param {ArrayLike<T3>} values2 The second array of values to exclude
|
|---|
| 85 | * @param {ArrayLike<T4>} values3 The third array of values to exclude
|
|---|
| 86 | * @param {ArrayLike<T5>} values4 The fourth array of values to exclude
|
|---|
| 87 | * @param {ArrayLike<T6>} values5 The fifth array of values to exclude
|
|---|
| 88 | * @param {...(ArrayLike<T7> | ValueIteratee<T1 | T2 | T3 | T4 | T5 | T6 | T7>)[]} values Additional arrays of values to exclude and iteratee
|
|---|
| 89 | * @returns {T1[]} Returns the new array of filtered values
|
|---|
| 90 | * @example
|
|---|
| 91 | * differenceBy([2.1, 1.2, 3.5, 4.8, 5.3, 6.7], [2.3], [1.4], [3.2], [4.1], [5.8], [6.2], Math.floor)
|
|---|
| 92 | * // => []
|
|---|
| 93 | */
|
|---|
| 94 | declare function differenceBy<T1, T2, T3, T4, T5, T6, T7>(array: ArrayLike<T1> | null | undefined, values1: ArrayLike<T2>, values2: ArrayLike<T3>, values3: ArrayLike<T4>, values4: ArrayLike<T5>, values5: ArrayLike<T6>, ...values: Array<ArrayLike<T7> | ValueIteratee<T1 | T2 | T3 | T4 | T5 | T6 | T7>>): T1[];
|
|---|
| 95 | /**
|
|---|
| 96 | * Creates an array of array values not included in the other given arrays.
|
|---|
| 97 | *
|
|---|
| 98 | * @template T
|
|---|
| 99 | * @param {ArrayLike<T> | null | undefined} array The array to inspect
|
|---|
| 100 | * @param {...Array<ArrayLike<T>>} values The arrays of values to exclude
|
|---|
| 101 | * @returns {T[]} Returns the new array of filtered values
|
|---|
| 102 | * @example
|
|---|
| 103 | * differenceBy([2, 1], [2, 3])
|
|---|
| 104 | * // => [1]
|
|---|
| 105 | */
|
|---|
| 106 | declare function differenceBy<T>(array: ArrayLike<T> | null | undefined, ...values: Array<ArrayLike<T>>): T[];
|
|---|
| 107 |
|
|---|
| 108 | export { differenceBy };
|
|---|