@splitsoftware/splitio-commons
Version:
Split JavaScript SDK common components
12 lines (11 loc) • 453 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.endsWithMatcherContext = void 0;
var lang_1 = require("../../utils/lang");
function endsWithMatcherContext(ruleAttr) {
return function endsWithMatcher(runtimeAttr) {
var strEndsWith = ruleAttr.some(function (e) { return (0, lang_1.endsWith)(runtimeAttr, e); });
return strEndsWith;
};
}
exports.endsWithMatcherContext = endsWithMatcherContext;