Download node_modules/aria-query/lib/util/iterationDecorator.js from metarm/QMetaRam: direct link, hf CLI and curl.
- Browser
- Download file 867 Bytes
-
https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/aria-query/lib/util/iterationDecorator.js
- Command line
-
hf download hf://metarm/QMetaRam/node_modules/aria-query/lib/util/iterationDecorator.js
-
curl -L -o iterationDecorator.js https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/aria-query/lib/util/iterationDecorator.js
867 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| exports.default = iterationDecorator; | |
| var _iteratorProxy = _interopRequireDefault(require("./iteratorProxy")); | |
| function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | |
| function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | |
| function iterationDecorator(collection, entries) { | |
| if (typeof Symbol === 'function' && _typeof(Symbol.iterator) === 'symbol') { | |
| Object.defineProperty(collection, Symbol.iterator, { | |
| value: _iteratorProxy.default.bind(entries) | |
| }); | |
| } | |
| return collection; | |
| } |