function createViewsArray(views) {
    if (Array.isArray(views)) {
        return Array.from(views);
    }

    switch (typeof views) {
        case 'string':
            return [ views ];

        case 'object':
            if (views != null) {
                return Object.values(views);
            }
    }

    throw new TypeError(
        'Expected \'views\' to be a string, array, or object'
    );
}
Creates a new array (shallow-copied) from the views configset.

@param  {*} views - The views configset.
@throws {TypeError} If views is invalid.
@return {array} Returns the views array.