function extract(object, keyPaths, seed) {
  return keyPaths.reduce(function(memo, keyPath) {
    return set(memo, keyPath, get(object, keyPath))
  }, seed || {})
}
Given a query (see above), return a subset of an object.
@private