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
LimeTypeorLimeProperty) and checks whether it contains the specified label. This function is typically used as a callback for array methods like.findor.filter.Returns
A function that takes an optional object and returns
trueif the label matches, orfalseotherwise.Example