UNPKG

90 BJavaScriptView Raw
1const hasMaxLength = (len, x) => x != null && x.length <= len;
2export {
3 hasMaxLength
4};