Permalink
Cannot retrieve contributors at this time
19 lines (19 sloc)
766 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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."); | |
} |