imports/vx/both/code/util.js
/**
     * Mutate an array by removing any trailing rows where all of the properties
     * have null values.
     *
     * @param {array} array Array of objects.
     * @param {array} ignoreKeys Array of names of keys to ignore.
     * @return {array} Array with empty rows removed.
     */
Mutate an array by removing any trailing rows where all of the properties
have null values.

@param {array} array Array of objects.
@param {array} ignoreKeys Array of names of keys to ignore.
@return {array} Array with empty rows removed.
Mutate an array by removing any trailing rows where all of the properties have null values . @param { array } array Array of objects . @param { array } ignoreKeys Array of names of keys to ignore . @return { array } Array with empty rows removed .
removeEmptyRows(array, ignoreKeys) {
        for (let rowIndex = array.length - 1; rowIndex >= 0; rowIndex--) {
            let row = array[rowIndex]
            let rowInUse = false
            _.every(Object.keys(row), key => {
                if (_.contains(ignoreKeys, key)) {
                    return true
                }
                if (!Util.isNullish(row[key])) {
                    rowInUse = true
                    return false
                }
                return true
            })
            if (rowInUse) {
                break
            }
            array.splice(rowIndex, 1)
        }
        return array
    }
removeEmptyRows ( array , ignoreKeys ) { for ( let rowIndex = array . length - 1 ; rowIndex >= 0 ; rowIndex -- ) { let row = array [ rowIndex ] let rowInUse = false _ . every ( Object . keys ( row ) , key => { if ( _ . contains ( ignoreKeys , key ) ) { return true } if ( ! Util . isNullish ( row [ key ] ) ) { rowInUse = true return false } return true } ) if ( rowInUse ) { break } array . splice ( rowIndex , 1 ) } return array }
Mutate an array by removing any trailing rows where all of the properties
 have null values.
Mutate an array by removing any trailing rows where all of the properties have null values .