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.
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.