Creates a function to check if a given object has a specific label.
The returned function takes an object (a LimeType or LimeProperty) and
checks whether it contains the specified label. This function is typically
used as a callback for array methods like .find or .filter.
Returns
A function that takes an optional object and returns true if the label matches, or false otherwise.
Creates a function to check if a given object has a specific label.
The returned function takes an object (a
LimeType
orLimeProperty
) and checks whether it contains the specified label. This function is typically used as a callback for array methods like.find
or.filter
.Returns
A function that takes an optional object and returns
true
if the label matches, orfalse
otherwise.Example