@wireapp/commons
Advanced tools
Comparing version 4.2.5 to 4.2.6
@@ -42,4 +42,4 @@ { | ||
}, | ||
"version": "4.2.5", | ||
"gitHead": "c0b9002af2455a916e7c0b65f28c6949e6be8a3d" | ||
"version": "4.2.6", | ||
"gitHead": "2f9bfdb57fc9b3d4a884818f839652ef6e9353f7" | ||
} |
@@ -0,1 +1,2 @@ | ||
import * as TypeUtil from './TypeUtil'; | ||
export declare function chunk<T>(array: T[], chunkSize: number): T[][]; | ||
@@ -7,1 +8,2 @@ export declare function getDeduplicatedUnion<T>(array1: T[], array2: T[]): T[]; | ||
export declare const flatten: <T>(arrays: T[][]) => T[]; | ||
export declare function filterFalsy<T>(value: T): value is Exclude<T, TypeUtil.FalsyType>; |
@@ -21,3 +21,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.flatten = exports.removeDuplicates = exports.getIntersection = exports.getDifference = exports.getDeduplicatedUnion = exports.chunk = void 0; | ||
exports.filterFalsy = exports.flatten = exports.removeDuplicates = exports.getIntersection = exports.getDifference = exports.getDeduplicatedUnion = exports.chunk = void 0; | ||
function chunk(array, chunkSize) { | ||
@@ -49,2 +49,6 @@ const chunks = []; | ||
exports.flatten = flatten; | ||
function filterFalsy(value) { | ||
return Boolean(value); | ||
} | ||
exports.filterFalsy = filterFalsy; | ||
//# sourceMappingURL=ArrayUtil.js.map |
@@ -0,1 +1,2 @@ | ||
export declare type FalsyType = false | null | undefined | '' | 0; | ||
/** | ||
@@ -2,0 +3,0 @@ * Makes all properties of a type recursively optional |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
170129
1181