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