dist/utils.js
function (val) {
        val = ensureDefault(val, constants_1.DEFAULT_TYPE_VALUES.array);
        if (!Array.isArray(val))
            val = [val];
        return val;
    }
function (val) {
        val = ensureDefault(val, constants_1.DEFAULT_TYPE_VALUES.array);
        if (!Array.isArray(val))
            val = [val];
        return val;
    }
Converts type to an array.

@param val the value to convert.