Checks if the specified object implements the HasLayers interface.
if (hasLayers(myObject)) { myObject.forEachLayer((layer) => console.log(layer));} Copy
if (hasLayers(myObject)) { myObject.forEachLayer((layer) => console.log(layer));}
The object to test.
Checks if the specified object implements the HasLayers interface.