packages/devtools-reps/src/reps/grip.js
function getProps(componentProps, properties, indexes, suppressQuotes) {
  // Make indexes ordered by ascending.
  indexes.sort(function(a, b) {
    return a - b;
  });

  const propertiesKeys = Object.keys(properties);
  return indexes.map(i => {
    const name = propertiesKeys[i];
    const value = getPropValue(properties[name]);

    return PropRep({
      ...componentProps,
      mode: MODE.TINY,
      name,
      object: value,
      equal: ": ",
      defaultRep: Grip,
      title: null,
      suppressQuotes
    });
  });
}
function getProps(componentProps, properties, indexes, suppressQuotes) {
  // Make indexes ordered by ascending.
  indexes.sort(function(a, b) {
    return a - b;
  });

  const propertiesKeys = Object.keys(properties);
  return indexes.map(i => {
    const name = propertiesKeys[i];
    const value = getPropValue(properties[name]);

    return PropRep({
      ...componentProps,
      mode: MODE.TINY,
      name,
      object: value,
      equal: ": ",
      defaultRep: Grip,
      title: null,
      suppressQuotes
    });
  });
}
function getProps ( componentProps , properties , indexes , suppressQuotes ) { // Make indexes ordered by ascending. indexes . sort ( function ( a , b ) { return a - b ; } ) ; const propertiesKeys = Object . keys ( properties ) ; return indexes . map ( i => { const name = propertiesKeys [ i ] ; const value = getPropValue ( properties [ name ] ) ; return PropRep ( { ... componentProps , mode : MODE . TINY , name , object : value , equal : ": " , defaultRep : Grip , title : null , suppressQuotes } ) ; } ) ; }
Get props ordered by index.

@param {Object} componentProps Grip Component props.
@param {Object} properties Properties of the object the Grip describes.
@param {Array} indexes Indexes of properties.
@param {Boolean} suppressQuotes true if we should suppress quotes
on property names.
@return {Array} Props.
Get props ordered by index .