function removeKeysFromArray (array, props, recursive = false) {
    const res = []
    let val = {}

    if (!array.length) {
      return res
    }

    for (let i = 0; i < array.length; i++) {
      if (isObject(array[i])) {
        val = removeKeysFromObject(array[i], props, recursive)
      } else if (isArray(array[i])) {
        val = removeKeysFromArray(array[i], props, recursive)
      } else {
        val = array[i]
      }

      res.push(val)
    }

    return res
  }
/**
   * Remove keys from an object inside an array and return a new array.
   *
   * @param   {Array}   array     array with objects
   * @param   {Array}   props     array of keys to remove
   * @param   {Boolean} recursive true if property needs to be removed recursively
   * @returns {Array}
   */
Remove keys from an object inside an array and return a new array.
@param   {Array}   array     array with objects
@param   {Array}   props     array of keys to remove
@param   {Boolean} recursive true if property needs to be removed recursively
@returns {Array}
Remove keys from an object inside an array and return a new array . @param { Array } array array with objects @param { Array } props array of keys to remove @param { Boolean } recursive true if property needs to be removed recursively @returns { Array }
function removeKeysFromArray (array, props, recursive = false) {
    const res = []
    let val = {}
    if (!array.length) {
      return res
    }
    for (let i = 0; i < array.length; i++) {
      if (isObject(array[i])) {
        val = removeKeysFromObject(array[i], props, recursive)
      } else if (isArray(array[i])) {
        val = removeKeysFromArray(array[i], props, recursive)
      } else {
        val = array[i]
      }
      res.push(val)
    }
    return res
  }
function removeKeysFromArray ( array , props , recursive = false ) { const res = [ ] let val = { } if ( ! array . length ) { return res } for ( let i = 0 ; i < array . length ; i ++ ) { if ( isObject ( array [ i ] ) ) { val = removeKeysFromObject ( array [ i ] , props , recursive ) } else if ( isArray ( array [ i ] ) ) { val = removeKeysFromArray ( array [ i ] , props , recursive ) } else { val = array [ i ] } res . push ( val ) } return res }
Remove keys from an object inside an array and return a new array.
Remove keys from an object inside an array and return a new array .