getTextLabel
Sourceimport { getTextLabel } from "@prestojs/util";
getTextLabel(item)
Get a plain text label from an item
If does not implement TextLabeled an error is thrown. To conditional call this check if labeled first
with isTextLabeled
.
Parameter | Type | Description | |
---|---|---|---|
* | item | any |
Returns