function pick(obj, keys) {
  const pickKeys = Array.isArray(keys) ? keys : [keys];
  let length = pickKeys.length;
  let key;
  const result = {};

  while (length > 0) {
    length -= 1;
    key = pickKeys[length];
    result[key] = obj[key];
  }
  return result;
}
/**
 * Returns a filtered copy of an object with only the specified keys.
 */
Returns a filtered copy of an object with only the specified keys.
Returns a filtered copy of an object with only the specified keys .
function pick(obj, keys) {
  const pickKeys = Array.isArray(keys) ? keys : [keys];
  let length = pickKeys.length;
  let key;
  const result = {};
  while (length > 0) {
    length -= 1;
    key = pickKeys[length];
    result[key] = obj[key];
  }
  return result;
}
function pick ( obj , keys ) { const pickKeys = Array . isArray ( keys ) ? keys : [ keys ] ; let length = pickKeys . length ; let key ; const result = { } ; while ( length > 0 ) { length -= 1 ; key = pickKeys [ length ] ; result [ key ] = obj [ key ] ; } return result ; }
Returns a filtered copy of an object with only the specified keys.
Returns a filtered copy of an object with only the specified keys .