UNPKG

@thi.ng/checks

Version:
5 lines (4 loc) 90 B
const hasMaxLength = (len, x) => x != null && x.length <= len; export { hasMaxLength };