@mikuroxina/mini-fn
    Preparing search index...

    Function mapOptionWithKey

    • Transforms the Map with lossy conversion mapper.

      Type Parameters

      • K
      • V
      • W

      Parameters

      • mapper: (key: K) => (value: V) => Option.Option<W>

        Function to transform into W, but optional. If it returned None, the value will be dropped. Also the key will be passed to.

      Returns (m: Map<K, V>) => Map<K, W>

      A new transformed Map.