object-predicate
Use simple objects to represent predicates in JavaScript and TypeScript
Setup
npm install object-predicate
Why
Sometimes we need to be able to store a predicate as JSON data. Regex and function support added on top of this for convenience
Use
; ; // Number predicate (greater-than, less-than, greater-or-equal, less-or equal);; // Exact string match;; // Using a regex;; // Using a property predicate;;
(c) 2018