function getObjectWherePropertyEndsWith(ending, object) {
  const keys = getPropertiesByEnding(ending, object);

  return pick(object, keys);
}
Creates a new object containing only properties that end with specified ending
@param {string} ending - The string that properties should be found ending with
@param {Object} object - The object to find keys on