export function mapNotNullish(array, transformer) {
    const ret = [];
    for (const element of array) {
        const transformedElement = transformer(element);
        if (transformedElement !== undefined && transformedElement !== null) {
            ret.push(transformedElement);
        }
    }
    return ret;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwX25vdF9udWxsaXNoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibWFwX25vdF9udWxsaXNoLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXdCQSxNQUFNLFVBQVUsYUFBYSxDQUMzQixLQUFtQixFQUNuQixXQUF5QjtJQUV6QixNQUFNLEdBQUcsR0FBcUIsRUFBRSxDQUFDO0lBRWpDLEtBQUssTUFBTSxPQUFPLElBQUksS0FBSyxFQUFFO1FBQzNCLE1BQU0sa0JBQWtCLEdBQUcsV0FBVyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBRWhELElBQUksa0JBQWtCLEtBQUssU0FBUyxJQUFJLGtCQUFrQixLQUFLLElBQUksRUFBRTtZQUNuRSxHQUFHLENBQUMsSUFBSSxDQUFDLGtCQUFvQyxDQUFDLENBQUM7U0FDaEQ7S0FDRjtJQUVELE9BQU8sR0FBRyxDQUFDO0FBQ2IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8vIENvcHlyaWdodCAyMDE4LTIwMjEgdGhlIERlbm8gYXV0aG9ycy4gQWxsIHJpZ2h0cyByZXNlcnZlZC4gTUlUIGxpY2Vuc2UuXG4vLyBUaGlzIG1vZHVsZSBpcyBicm93c2VyIGNvbXBhdGlibGUuXG5cbi8qKlxuICogUmV0dXJucyBhIG5ldyBhcnJheSwgY29udGFpbmluZyBhbGwgZWxlbWVudHMgaW4gdGhlIGdpdmVuIGFycmF5IHRyYW5zZm9ybWVkIHVzaW5nIHRoZSBnaXZlbiB0cmFuc2Zvcm1lciwgZXhjZXB0IHRoZSBvbmVzXG4gKiB0aGF0IHdlcmUgdHJhbnNmb3JtZWQgd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