Permalink
Cannot retrieve contributors at this time
17 lines (16 sloc)
895 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/aria-query/lib/util/iterationDecorator.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
"use strict"; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
exports.default = iterationDecorator; | |
var _iteratorProxy = _interopRequireDefault(require("./iteratorProxy")); | |
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | |
function iterationDecorator(collection, entries) { | |
if (typeof Symbol === 'function' && _typeof(Symbol.iterator) === 'symbol') { | |
Object.defineProperty(collection, Symbol.iterator, { | |
value: _iteratorProxy.default.bind(entries) | |
}); | |
} | |
return collection; | |
} |