getCollection

Function
import { getCollection } from "@esri/hub-common";
//
getCollection('Feature Layer')
> 'dataset'

Get the Hub collection for a given item type

import { getCollection } from "@esri/hub-common";
//
getCollection('Feature Layer')
> 'dataset'

Get the Hub collection for a given item type

  • getCollection(type: string) : string

Parameters

Parameter Type Default Notes
type Optional string

Returns

the Hub collection of a given item type.

string

Function defined in common/src/collections.ts:139