withlength
v1.1.4
Published
A package to find a string of specific length from an array
Downloads
1
Readme
withlength
It returns a string of specified length from a given array.
Installation
npm install withlength
Usage
import withLength from 'withLength'
withLength(['Hello','Hai'],5)
//Output
{
maxlength:5,
minlength:3,
string:['Hello']
}
Examples
withLength(['Hello','Hai']) //with out length argument
{
maxlength:5,
minlength:3,
maxs:['Hello'],
mins:['Hai']
}