Sha256: 5044ac960fa6bee1a74bffb1aaf6ddcbf3ec7f957ee1c36542c098bb50c20201

Contents?: true

Size: 768 Bytes

Versions: 30

Compression:

Stored size: 768 Bytes

Contents

import unsupportedIterableToArray from "./unsupportedIterableToArray.js";
export default function _createForOfIteratorHelperLoose(o, allowArrayLike) {
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
  if (it) return (it = it.call(o)).next.bind(it);

  if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
    if (it) o = it;
    var i = 0;
    return function () {
      if (i >= o.length) return {
        done: true
      };
      return {
        done: false,
        value: o[i++]
      };
    };
  }

  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

Version data entries

30 entries across 30 versions & 3 rubygems

Version Path
isomorfeus-redux-4.2.0 node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
isomorfeus-redux-4.1.18 node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
isomorfeus-redux-4.1.17 node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
isomorfeus-redux-4.1.16 node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
isomorfeus-redux-4.1.15 node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
isomorfeus-redux-4.1.14 node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
isomorfeus-redux-4.1.13 node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
isomorfeus-redux-4.1.12 node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
disco_app-0.16.1 test/dummy/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
isomorfeus-redux-4.1.11 node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
isomorfeus-redux-4.1.10 node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
isomorfeus-redux-4.1.9 node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
disco_app-0.15.2 test/dummy/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
isomorfeus-redux-4.1.8 node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
isomorfeus-redux-4.1.7 node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
disco_app-0.18.4 test/dummy/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
disco_app-0.18.1 test/dummy/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
disco_app-0.14.0 test/dummy/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js