StructureJS
0.15.2A class based utility library for building modular and scalable web platform applications. Features opt-in classes and utilities which provide a solid foundation and toolset to build your next project.
A ValidationUtility class that has several static methods to assist in development.
isEmpty
value
isMatch
value1
value2
Determines if the two values passed in are the same.
value1
Any
value2
Any
ValidationUtil.isMatch('one@email.com', 'two@email.com');
// false
isPostalCode
postalCode
isSocialSecurityNumber
ssn
isValidEmailAddress
email
isValidPhoneNumber
phoneNumber