/** * Helper functions that have to do with * [maps](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map). * * @module */ /** * Helper function to get the values in a `Map` that match an arbitrary condition. Similar to the * `Array.map` method, but works for maps. * * This is efficient such that it avoids converting the map values into an array. * * If you want to perform a filter and a map at the same time on an array, use the `filterMap` * helper function instead. */ export declare function mapFilter(map: ReadonlyMap, predicate: (value: V) => boolean): readonly V[]; /** * Helper function to find a value in a `Map`. Similar to the `Array.find` method, but works for * maps. * * This is efficient such that it avoids converting the map values into an array. * * @param map The map to search through. * @param predicate Function that tests each value for a condition. * @returns The first value that satisfies the predicate, or undefined if no values satisfy. */ export declare function mapFind(map: ReadonlyMap, predicate: (value: V, key: K, map: ReadonlyMap) => boolean): V | undefined; //# sourceMappingURL=map.d.ts.map