Type-safe utility library for boolean checks on assorted data types
judgemental is a library inspired by Apache Commons Lang3 which aims to provide a rich, comprehensive set of utility functions centered around but not limited to primitive data types. It aims to be a one stop shop for helper utilities needed to make day to day development seamless and help developers write lean, concise, and elegant code.
npm i judgemental
// sj: string judge
import { sj } from "judgemental";
// returns true
const myEmail = "foo@bar.com"
const isValidEmail = sj.isEmail(myEmail)
// returns false
const myBirthday = "19900101"
const isValidBirthday = sj.isDatetime(myBirthday)
// and so on ...
Generated using TypeDoc