function getKeysForObjects(objects) {
  return uniq(flattenDeep(objects.map(o => Object.keys(o))));
}
Obtains all the unique keys between an array of objects
@param {Object <array>} objects - An array of objects