Class NetworkLocator

Provides utility functions for finding a network.

Constructors

Methods

  • Finds a network with a specified identifier within a list of networks.

    Type Parameters

    • TNetwork_1 extends Network<any, any>

    Parameters

    • networks: TNetwork_1[]

      List of networks to search.

    • singleOrMultipleIdentifiers: number | number[]

      Identifiers for which to search.

    Returns TNetwork_1

    First network with an identifier in the supplied list.

  • Finds a network with a specified name within a list of networks.

    Type Parameters

    • TNetwork extends Network<any, any>

    Parameters

    • networks: TNetwork[]

      List of networks to search.

    • singleOrMultipleNames: string | string[]

      Names for which to search.

    Returns TNetwork

    First network with a name in the supplied list.