UNPKG

json-based-conditions-and-rules-logic-evaluator

Version:

script that parses some customizable conditions and rules, then outputs a predefined value of that matching rule, or a default value

4 lines (2 loc) 92 B
const isContained = (lhs, rhs) => lhs.indexOf(rhs) > -1; module.exports = { isContained };