Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
sommilito-bank2
/
splide-4.1.3
/
src
/
js
/
utils
/
dom
/
unit
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
import { isString } from '../../type/type'; /** * Appends `px` to the provided number. * If the value is already string, just returns it. * * @param value - A value to append `px` to. * * @return A string with the CSS unit. */ export function unit( value: number | string ): string { return isString( value ) ? value : value ? `${ value }px` : ''; }