UNPKG

email-misspelled

Version:

Check misspell email's domain and return a list of matching domain suggestions

5 lines (4 loc) 188 B
export const stringLengthChecker = (value = "", lengthDiffMax = 1) => (ref) => { const diff = value.length - ref.length; return diff <= lengthDiffMax && diff >= -lengthDiffMax; };