utilizes.suffix
v1.0.2
Published
Adding fix to the end of a string only if the string is present.
Downloads
2
Readme
suffix
Adding fix to the end of a string only if the string is present.
Usage: suffix(value: string, fix: string): string
import { suffix } from 'utilizes.suffix'
suffix('Mr ', 'john')
// Output: 'Mr john'
suffix('Mr ', null)
// Output: 'Mr '
suffix(null, 'john')
// Output: ''
This module exported from utilizes project.