trunc
v0.0.1
Published
Trunc club
Downloads
5
Readme
trunc
Install
$ npm i --save trunc
Usage
import trunc from 'trunc'
const str = 'string theory'
trunc(str, 3)
// str...
API
trunc(string, value)
Truncates a string to whatever value you pass in
License
MIT © Vito Belgiorno-Zegna