code: function toEntries(object, properties) {
    return flatten(properties.map(name => {
      const p = descriptorOf(object, name);
  
      let result = [];
  
      if (p.get) {
        result.push({ name, value: p.get, kind: 'getter' });
      }
      if (p.set) {
        result.push({ name, value: p.set, kind: 'setter' });
      }
      if (p.value) {
        result.push({ name, value: p.value, kind: 'value' });
      }
  
      return result;
    }));
  }
docs: /*~
  Converts an array of property names into an array of Entry.
  ---
  complexity: O(properties.length)