ixfx
    Preparing search index...

    Function addValue

    • Adds values to a map, returning a new, modified copy and leaving the original intact.

      Use addValueMutate for a mutable

      Type Parameters

      • V

      Parameters

      • map: undefined | Map<string, V> | ReadonlyMap<string, V>

        Map to start with, or undefined to automatically create a map

      • hasher: ToString<V>

        Function to create keys for values

      • collisionPolicy: "throw" | "overwrite" | "skip"

        What to do if a key already exists

      • ...values: readonly V[]

        Values to add

      Returns Map<string, V>

      A new map containing values