UNPKG

@polgubau/utils

Version:

A collection of utility functions for TypeScript

1 lines 599 B
{"version":3,"sources":["../../../../src/texts/px/px.ts"],"sourcesContent":["/**\n * @name px\n * @description Converts the specified number to a pixel string\n * @param arg <string | number> The number to convert\n * @returns <string> The pixel string\n * @example\n * const pxString = px(10);\n * console.info(pxString); // 10px\n * const pxString = px('10'); // 10px\n *\n * @author Pol Gubau Amores - https://polgubau.com\n */\nexport function px(arg: string | number) {\n return `${arg.toString()}px`;\n}\n"],"mappings":";AAYO,SAAS,GAAG,KAAsB;AACvC,SAAO,GAAG,IAAI,SAAS,CAAC;AAC1B;","names":[]}