Sha256: 44394d86fb4839b0f543c970233f21dd4b0c6a9a53143e008f68ae51a64b00f4

Contents?: true

Size: 698 Bytes

Versions: 24

Compression:

Stored size: 698 Bytes

Contents

var unsupportedIterableToArray = require("./unsupportedIterableToArray");

function _createForOfIteratorHelperLoose(o) {
  var i = 0;

  if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
    if (Array.isArray(o) || (o = unsupportedIterableToArray(o))) 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.");
  }

  i = o[Symbol.iterator]();
  return i.next.bind(i);
}

module.exports = _createForOfIteratorHelperLoose;

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
trusty-cms-5.0.7 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-5.0.6 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-5.0.5 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-5.0.4 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-5.0.3 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-5.0.2 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-5.0.1 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-4.3.5 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-5.0.0 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-4.3.4 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-4.3.3 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-4.3.2 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-4.3.1 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-4.3 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-4.2.3 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-4.2.2 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-4.2.1 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-4.2 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-4.1.9 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
trusty-cms-4.1.8 node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js