7 lines
147 B
TypeScript
7 lines
147 B
TypeScript
|
export const getDimension = (dimension: string) => {
|
||
|
if (dimension.match(/^\d+$/)) {
|
||
|
dimension = `${dimension}%`;
|
||
|
}
|
||
|
return dimension;
|
||
|
};
|