Options
All
  • Public
  • Public/Protected
  • All
Menu

Module internal/get-entities

Index

Functions

Functions

getEntities

  • Gets an array of all entities in the state

    Type parameters

    • T

    Returns (state: Normalized<T>) => T[]

  • Finds an entity by ID

    Type parameters

    • T

    Parameters

    • id: ID

      ID of the entity to find

    Returns (state: Normalized<T>) => T | undefined

    Entity object if found, undefined otherwise

  • Finds multiple entities by ID. Note that IDs will be ignored if the entity isn't found, the array returned may not be the same length as the input array.

    Type parameters

    • T

    Parameters

    • ids: ID[]

      Array of IDs to find

    Returns (state: Normalized<T>) => T[]

    Array of found entities

  • Finds all entities that match the filter function.

    Type parameters

    • T

    Parameters

    Returns (state: Normalized<T>) => T[]

    Array of entities matching the filter function

Generated using TypeDoc