function assign (map, ...objects) {
  for (const args of objects) {
    if (!args) {
      continue
    }
    if (isMap(args)) {
      for (const key of args.keys()) {
        map.set(key, args.get(key))
      }
    } else if (isObject(args)) {
      for (const key of Object.keys(args)) {
        map.set(key, args[key])
      }
    }
  }
  return map
}
Copies the contents of key-value pairs from each `objects` in to `map`.

Object is `objects` can be a `Map` or object.

This is the `Map` analog to `Object.assign`.