possibly a string
minimum possible length (inclusive)
OptionalmaxLen: numbermaximum possible length (inclusive)
This function delegates the length check to inRange, which may throw if minLen or maxLen are invalid.
isStrLen('Hello', 2, 10) => true
isStrLen('Hello', 5, 10) => true // 'Hello'.length is 5
isStrLen('Exact', 5, 5) => true
isStrLen('Hello', 5) => true // The length is at least 5
isStrLen('Hello', undefined, 5) => true // The length is at most 5
isStrLen('Too long', 1, 4) => false
isStrLen(null, 1, 4) => false
Checks if the provided value is a string AND its length is in a boundary (inclusive). If
minandmaxare the same, it tests for exact length.