lib/utils.js
function objectValues(obj) {
  if (!obj) {
    return exports.emptyArray;
  }
  const keys = Object.keys(obj);
  const values = new Array(keys.length);
  for (let i = 0; i < keys.length; i++) {
    values[i] = obj[keys[i]];
  }
  return values;
}
function objectValues(obj) {
  if (!obj) {
    return exports.emptyArray;
  }
  const keys = Object.keys(obj);
  const values = new Array(keys.length);
  for (let i = 0; i < keys.length; i++) {
    values[i] = obj[keys[i]];
  }
  return values;
}
Returns an array containing the values of the Object, similar to Object.values().
If obj is null or undefined, it will return an empty array.
@param {Object} obj
@returns {Array}