UNPKG

rule-filter-validator

Version:

A object and scope validator based on structured rules

11 lines 346 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toArray = toArray; // eslint-disable-next-line @typescript-eslint/no-explicit-any function toArray(val) { if (typeof val === 'string') { return val.split(','); } return Array.isArray(val) ? val : [val]; } //# sourceMappingURL=to-array.js.map