Creates a function to find a limetype by its label in a collection of limetypes.
The returned function searches through a collection of limetypes and returns
the first one that matches the given label. This function is typically used
to generate a callback for decorators or other higher-order logic.
Returns
A function that takes a collection of limetypes and returns the first
limetype that matches the label, or undefined if no match is found.
Creates a function to find a limetype by its label in a collection of limetypes.
The returned function searches through a collection of limetypes and returns the first one that matches the given label. This function is typically used to generate a callback for decorators or other higher-order logic.
Returns
A function that takes a collection of limetypes and returns the first limetype that matches the label, or
undefined
if no match is found.Example
Example