Docs List
getFeatureLayers()
To access the array of all vector layers, use the getFeatureLayers method. The keys of this array are layer names. To use the data manipulation capabilities, you must use the values of this array.
Returns:
Object: Returns feature layers object.
Example:
const featureLayers = map.getFeatureLayers();