function objToArray(obj, keys) {
  return keys.map(function(key) {
    return obj[key];
  });
}
/**
 * Returns an array corresponding to the given object and desired ordering of keys.
 *
 * @param {Object} obj Object whose values will be returned as an array.
 * @param {String[]} keys An array of key names in the desired order.
 * @returns {Object[]}
 */
Returns an array corresponding to the given object and desired ordering of keys.
@param {Object} obj Object whose values will be returned as an array.
@param {String[]} keys An array of key names in the desired order.
@returns {Object[]}
Returns an array corresponding to the given object and desired ordering of keys . @param { Object } obj Object whose values will be returned as an array . @param { String [] } keys An array of key names in the desired order . @returns { Object [] }
function objToArray(obj, keys) {
  return keys.map(function(key) {
    return obj[key];
  });
}
function objToArray ( obj , keys ) { return keys . map ( function ( key ) { return obj [ key ] ; } ) ; }
Returns an array corresponding to the given object and desired ordering of keys.
Returns an array corresponding to the given object and desired ordering of keys .