@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
17 lines (16 loc) • 356 B
JavaScript
/**
* Map of shirt sizes, and their respective pixel sizes.
*/
export const sizeMap = {
s: 16,
m: 20,
l: 24,
};
/**
* Validates the specified size is a known, and valid, size.
* @param size Size to validate.
* @returns `true` when the size is valid; otherwise `false`.
*/
export function isValidSize(size) {
return size in sizeMap;
}