@loadsmart/utils-string
v0.3.1
Published
useful functions for manipulating string
Downloads
662
Maintainers
Keywords
Readme
utils-string
useful functions for manipulating strings
Install via NPM
$ npm i @loadsmart/utils-string --save
Install via yarn
$ yarn add @loadsmart/utils-string
Usage
import React from 'react'
import {
toCapitalizeFirstLetter,
toLocaleCapitalizeFirstLetter,
} from '@loadsmart/utils-string'
export default () => (
<div>
Uppercase First Letter: {toCapitalizeFirstLetter('new york')}
Uppercase First Letter with locale provided: {toLocaleCapitalizeFirstLetter(
'istanbul',
'tr'
)}
</div>
)