Sha256: b5b58ec90cdc25e9ad03916d97b9136a8efc9228e9ddeebcf6e0f47a35349fd3

Contents?: true

Size: 1.5 KB

Versions: 13

Compression:

Stored size: 1.5 KB

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = _createForOfIteratorHelper;
var _unsupportedIterableToArray = require("unsupportedIterableToArray");
function _createForOfIteratorHelper(o, allowArrayLike) {
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
  if (!it) {
    if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
      if (it) o = it;
      var i = 0;
      var F = function () {};
      return {
        s: F,
        n: function () {
          if (i >= o.length) return {
            done: true
          };
          return {
            done: false,
            value: o[i++]
          };
        },
        e: function (e) {
          throw e;
        },
        f: F
      };
    }
    throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  }
  var normalCompletion = true,
    didErr = false,
    err;
  return {
    s: function () {
      it = it.call(o);
    },
    n: function () {
      var step = it.next();
      normalCompletion = step.done;
      return step;
    },
    e: function (e) {
      didErr = true;
      err = e;
    },
    f: function () {
      try {
        if (!normalCompletion && it.return != null) it.return();
      } finally {
        if (didErr) throw err;
      }
    }
  };
}

//# sourceMappingURL=createForOfIteratorHelper.js.map

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/jscodeshift/node_modules/@babel/core/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js
immosquare-cleaner-0.1.50 node_modules/jscodeshift/node_modules/@babel/core/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js
immosquare-cleaner-0.1.49 node_modules/jscodeshift/node_modules/@babel/core/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js
immosquare-cleaner-0.1.48 node_modules/jscodeshift/node_modules/@babel/core/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js
immosquare-cleaner-0.1.47 node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js
immosquare-cleaner-0.1.46 node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js
immosquare-cleaner-0.1.45 node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js
immosquare-cleaner-0.1.44 node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js
immosquare-cleaner-0.1.43 node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js
immosquare-cleaner-0.1.42 node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js
immosquare-cleaner-0.1.41 node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js
immosquare-cleaner-0.1.40 node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js
wice_grid-7.1.0 node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js