34 lines
739 B
JavaScript
34 lines
739 B
JavaScript
// Module ID: 131
|
|
// Function ID: 2165
|
|
// Name: createValueIterator
|
|
// Dependencies: []
|
|
|
|
// Module 131 (createValueIterator)
|
|
arg5.createValueIterator = function* createValueIterator(arg0) {
|
|
let num = 0;
|
|
if (0 < arg0.length) {
|
|
yield arg0[num];
|
|
do {
|
|
num = num + 1;
|
|
} while (num < arg0.length);
|
|
}
|
|
};
|
|
arg5.createKeyIterator = function* createKeyIterator(arg0) {
|
|
let num = 0;
|
|
if (0 < arg0.length) {
|
|
yield num;
|
|
do {
|
|
num = num + 1;
|
|
} while (num < arg0.length);
|
|
}
|
|
};
|
|
arg5.createEntriesIterator = function* createEntriesIterator(arg0) {
|
|
let num = 0;
|
|
if (0 < arg0.length) {
|
|
const items = [num, arg0[num]];
|
|
yield items;
|
|
do {
|
|
num = num + 1;
|
|
} while (num < arg0.length);
|
|
}
|
|
};
|