UNPKG

rule-filter-validator

Version:

A object and scope validator based on structured rules

8 lines 249 B
// eslint-disable-next-line @typescript-eslint/no-explicit-any export function toArray(val) { if (typeof val === 'string') { return val.split(','); } return Array.isArray(val) ? val : [val]; } //# sourceMappingURL=to-array.js.map