UNPKG

withlength

Version:

A package to find a string of specific length from an array

35 lines (27 loc) 609 B
# withlength It returns a string of specified length from a given array. ### Installation ```sh npm install withlength ``` ### Usage ```sh import withLength from 'withLength' withLength(['Hello','Hai'],5) //Output { maxlength:5, minlength:3, string:['Hello'] } ``` ### Examples ```sh withLength(['Hello','Hai']) //with out length argument { maxlength:5, minlength:3, maxs:['Hello'], mins:['Hai'] } ```