UNPKG

@rawcmd/utils

Version:
15 lines 446 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const is_array_1 = require("./is-array"); const is_undefined_1 = require("./is-undefined"); const is_null_1 = require("./is-null"); function toArray(v) { if (is_array_1.isArray(v) || is_undefined_1.isUndefined(v) || is_null_1.isNull(v)) { return v; } else { return [v]; } } exports.toArray = toArray; //# sourceMappingURL=to-array.js.map