function cleanArray(inArray) {
        let newArr = [ ];
        for (let nval of inArray) {
            nval = nval.trim();
            if (nval && nval.length > 0) {
                newArr.push(nval);
            }
        }

        return newArr;
    }
/**
     * Return an array without any `undefined` / zero-length values
     * @param {Array} inArray Input array
     * @returns {Array} New array without any empty values
     */
Return an array without any `undefined` / zero-length values
@param {Array} inArray Input array
@returns {Array} New array without any empty values
Return an array without any ` undefined ` / zero - length values @param { Array } inArray Input array @returns { Array } New array without any empty values
function cleanArray(inArray) {
        let newArr = [ ];
        for (let nval of inArray) {
            nval = nval.trim();
            if (nval && nval.length > 0) {
                newArr.push(nval);
            }
        }
        return newArr;
    }
function cleanArray ( inArray ) { let newArr = [ ] ; for ( let nval of inArray ) { nval = nval . trim ( ) ; if ( nval && nval . length > 0 ) { newArr . push ( nval ) ; } } return newArr ; }
Return an array without any `undefined` / zero-length values
 @param {Array} inArray Input array
 @returns {Array} New array without any empty values
Return an array without any ` undefined ` / zero - length values @param { Array } inArray Input array @returns { Array } New array without any empty values