browserscripts/pageinfo/visualElements.js
function toArray(arrayLike) {
        if (arrayLike === undefined || arrayLike === null) {
            return [];
        }
        if (Array.isArray(arrayLike)) {
            return arrayLike;
        }
        return [arrayLike];
    }
function toArray(arrayLike) {
        if (arrayLike === undefined || arrayLike === null) {
            return [];
        }
        if (Array.isArray(arrayLike)) {
            return arrayLike;
        }
        return [arrayLike];
    }
function toArray ( arrayLike ) { if ( arrayLike === undefined || arrayLike === null ) { return [ ] ; } if ( Array . isArray ( arrayLike ) ) { return arrayLike ; } return [ arrayLike ] ; }
When we feed options from the CLI it can be a String or an Array with Strings. Make it easy to treat everything the same.
When we feed options from the CLI it can be a String or an Array with Strings . Make it easy to treat everything the same .