toPx
Converts a number to a string with ‘px’ appended.
Import:
import { toPx } from '@mnaoumov/typescript-lib/html-element';Signature:
function toPx(value: number): stringParameters:
| Parameter | Type | Description |
|---|---|---|
value |
number | The number to convert. |
Returns: string — The number as a string with ‘px’ appended.