SerenityJS
    Preparing search index...

    Class EntitySharedPropertiesMap

    Hierarchy

    • Map<string, number | boolean | string>
      • EntitySharedPropertiesMap
    Index

    Constructors

    Properties

    "[toStringTag]": string
    size: number

    the number of elements in the Map.

    "[species]": MapConstructor

    Methods

    • Returns an iterable of entries in the map.

      Returns MapIterator<[string, string | number | boolean]>

    • Delete a property from the entity

      Parameters

      • identifier: string

        The identifier of the property

      Returns boolean

      True if the property was deleted, false otherwise.

    • Returns an iterable of key, value pairs for every entry in the map.

      Returns MapIterator<[string, string | number | boolean]>

    • Executes a provided function once per each key/value pair in the Map, in insertion order.

      Parameters

      • callbackfn: (
            value: string | number | boolean,
            key: string,
            map: Map<string, string | number | boolean>,
        ) => void
      • OptionalthisArg: any

      Returns void

    • Get a property from the entity

      Parameters

      • identifier: string

        The identifier of the property

      Returns undefined | string | number | boolean

      The value of the property

    • Parameters

      • key: string

      Returns boolean

      boolean indicating whether an element with the specified key exists or not.

    • Returns an iterable of keys in the map

      Returns MapIterator<string>

    • Set a property on the entity

      Parameters

      • identifier: string

        The identifier of the property

      • value: string | number | boolean

        The value of the property

      Returns this

      The entity property map.

    • Returns an iterable of values in the map

      Returns MapIterator<string | number | boolean>

    • Groups members of an iterable according to the return value of the passed callback.

      Type Parameters

      • K
      • T

      Parameters

      • items: Iterable<T>

        An iterable.

      • keySelector: (item: T, index: number) => K

        A callback which will be invoked for each item in items.

      Returns Map<K, T[]>