@awesome-fe/translate
Version:
Translation utils
15 lines • 463 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.matchSome = void 0;
function matchSome(name, valueOrPatterns) {
return valueOrPatterns.some(function (valueOrPattern) {
if (typeof valueOrPattern === 'string') {
return name === valueOrPattern;
}
else {
return valueOrPattern.test(name);
}
});
}
exports.matchSome = matchSome;
//# sourceMappingURL=match-some.js.map