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) 108 B
const isStartedWith = (lhs, rhs) => lhs.substr(0, rhs.length) === rhs; module.exports = { isStartedWith };