function pick (object, properties, transform) {
  const copy = {}

  for (let i = 0; i < properties.length; i++) {
    const key = properties[i]
    const value = get(object, key)
    if (value !== undefined) {
      set(copy, key, transform ? transform(value, key) : value)
    }
  }

  return copy
}
Create an object composed of the picked object properties
@param {Object} object
@param {string[]} properties
@param {function} [transform] Optional value to transform a value when picking it
@return {Object}