Methods
(static) findByIdentifier(networks, singleOrMultipleIdentifiers) → {TNetwork}
- Description:
Finds a network with a specified identifier within a list of networks.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
networks |
Array.<TNetwork> | List of networks to search. |
singleOrMultipleIdentifiers |
Array.<number> | number | Identifiers for which to search. |
Returns:
First network with an identifier in the supplied list.
- Type
- TNetwork
(static) findByName(networks, singleOrMultipleNames) → {TNetwork}
- Description:
Finds a network with a specified name within a list of networks.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
networks |
Array.<TNetwork> | List of networks to search. |
singleOrMultipleNames |
Array.<string> | string | Names for which to search. |
Returns:
First network with a name in the supplied list.
- Type
- TNetwork