KC's Workspace
    Preparing search index...
    • Creates a new Immutable Map.

      Created with the same key value pairs as the provided Collection.Keyed or JavaScript Object or expects a Collection of [K, V] tuple entries.

      Note: Map is a factory function and not a class, and does not use the new keyword during construction.

      Keep in mind, when using JS objects to construct Immutable Maps, that JavaScript Object properties are always strings, even if written in a quote-less shorthand, while Immutable Maps accept keys of any type.

      Property access for JavaScript Objects first converts the key to a string, but since Immutable Map keys can be of any type the argument to get() is not altered.

      Type Parameters

      • K
      • V

      Parameters

      • Optionalcollection: Iterable<readonly [K, V], any, any>

      Returns Map<K, V>

    • Creates a new Immutable Map.

      Created with the same key value pairs as the provided Collection.Keyed or JavaScript Object or expects a Collection of [K, V] tuple entries.

      Note: Map is a factory function and not a class, and does not use the new keyword during construction.

      Keep in mind, when using JS objects to construct Immutable Maps, that JavaScript Object properties are always strings, even if written in a quote-less shorthand, while Immutable Maps accept keys of any type.

      Property access for JavaScript Objects first converts the key to a string, but since Immutable Map keys can be of any type the argument to get() is not altered.

      Type Parameters

      • R extends { [key: string]: unknown; [key: number]: unknown; [key: symbol]: unknown }

      Parameters

      • obj: R

      Returns MapOf<R>

    • Creates a new Immutable Map.

      Created with the same key value pairs as the provided Collection.Keyed or JavaScript Object or expects a Collection of [K, V] tuple entries.

      Note: Map is a factory function and not a class, and does not use the new keyword during construction.

      Keep in mind, when using JS objects to construct Immutable Maps, that JavaScript Object properties are always strings, even if written in a quote-less shorthand, while Immutable Maps accept keys of any type.

      Property access for JavaScript Objects first converts the key to a string, but since Immutable Map keys can be of any type the argument to get() is not altered.

      Type Parameters

      • V

      Parameters

      • obj: { [key: string]: V }

      Returns Map<string, V>

    • Creates a new Immutable Map.

      Created with the same key value pairs as the provided Collection.Keyed or JavaScript Object or expects a Collection of [K, V] tuple entries.

      Note: Map is a factory function and not a class, and does not use the new keyword during construction.

      Keep in mind, when using JS objects to construct Immutable Maps, that JavaScript Object properties are always strings, even if written in a quote-less shorthand, while Immutable Maps accept keys of any type.

      Property access for JavaScript Objects first converts the key to a string, but since Immutable Map keys can be of any type the argument to get() is not altered.

      Type Parameters

      • K extends string | symbol
      • V

      Parameters

      • obj: { [P in string | symbol]?: V }

      Returns Map<K, V>