How to use the iter-tools/es5/entries function in iter-tools

To help you get started, we’ve selected a few iter-tools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github conartist6 / sequins / src / subtypes / concrete / map.js View on Github external
constructor(iterable) {
    super(iterable);
    // prettier-ignore
    this.__native = new Map(
      iterable == null
        ? []
        : isCollection(iterable) || isNative(iterable)
          ? iterable.entries()
          : isPlainObj(iterable)
            ? entries(iterable)
            : iterable,
    );
  }
github conartist6 / sequins / src / subtypes / sequence / keyed.js View on Github external
      this.__constructorTransform = obj => entries(obj);
    }