src/utils.js
/**
 * Check whether the passed argument is an array that only contains string values.
 *
 * @returns {boolean} `true` if the `arg` is an array which only contains string values. `false` otherwise.
 * @param {*} arr The potential string array.
 */
Check whether the passed argument is an array that only contains string values.
@returns {boolean} `true` if the `arg` is an array which only contains string values. `false` otherwise.
@param {*} arr The potential string array.
Check whether the passed argument is an array that only contains string values . @returns { boolean } ` true ` if the ` arg ` is an array which only contains string values . ` false ` otherwise . @param { * } arr The potential string array .
function isStringArray (arr) {
    if (!arr || !util.isArray(arr)) return false;
    for (var i = 0; i !== arr.length; ++i) if (!util.isString(arr[i])) return false;
    return true;
}
function isStringArray ( arr ) { if ( ! arr || ! util . isArray ( arr ) ) return false ; for ( var i = 0 ; i !== arr . length ; ++ i ) if ( ! util . isString ( arr [ i ] ) ) return false ; return true ; }
Check whether the passed argument is an array that only contains string values.
Check whether the passed argument is an array that only contains string values .