2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-13 14:13:06 +00:00

Remove unnecessary comments from utils

This commit is contained in:
Vjacheslav Trushkin 2021-09-24 18:39:17 +03:00
parent c28ad01412
commit a77c89a545

View File

@ -6,13 +6,6 @@ const unitsTest = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
/**
* Calculate second dimension when only 1 dimension is set
*
* @param {string|number} size One dimension (such as width)
* @param {number} ratio Width/height ratio.
* If size is width, ratio = height/width
* If size is height, ratio = width/height
* @param {number} [precision] Floating number precision in result to minimize output. Default = 2
* @return {string|number} Another dimension
*/
export function calculateSize(
size: string | number,