code: function enumerate(collection) {
      if (isObject(collection)) {
          if (collection instanceof Map) {
              return enumerateMap(collection)
          } else if (isIterable(collection)) {
              return enumerateIterable(collection)
          } else {
              return enumerateObject(collection)
          }
      } else {
          throw new TypeError("Object cannot be enumerated")
      }
  }
docs: Inspired by Python's enumerate