text: 'use strict';
  
  const _ = require('lodash');
  
  module.exports.filterProps = function (collection, properties) {
    return _.reduce(
      collection,
      (result, value, key) => {
        if (_.includes(properties, key)) result[key] = value;
        return result;
      },
      {}
    );
  };
  