A list of label names currently registered with the JS API.
Use label() to get the object associated with a label.
3.2
[]
Empty Array
If there are no labels yet, an empty array is returned.
3.2
Example
Iterate all labels, getting the objects associated with them...
enumLabel().forEach( function getObjectFor(labelName) {
var obj = label(labelName); // retrieve object
if (obj) {
// do stuff with object
} else {
// there are no objects associated with this label
}
} );