withlength
Version:
A package to find a string of specific length from an array
35 lines (27 loc) • 609 B
Markdown
It returns a string of specified length from a given array.
```sh
npm install withlength
```
```sh
import withLength from 'withLength'
withLength(['Hello','Hai'],5)
//Output
{
maxlength:5,
minlength:3,
string:['Hello']
}
```
```sh
withLength(['Hello','Hai']) //with out length argument
{
maxlength:5,
minlength:3,
maxs:['Hello'],
mins:['Hai']
}
```