function getPropertiesByEnding(ending, object) {
  return Object.keys(object).filter((name) => name.endsWith(ending));
}
Finds properties on an object that end in specified word
@param {string} ending - The string that properties should be found ending with
@param {Object} object - The object to find keys on