1
0
This commit is contained in:
2024-05-18 15:07:08 +02:00
parent 8c6693ad98
commit 654151e06e
5 changed files with 69 additions and 58 deletions

View File

@@ -1,5 +1,6 @@
import { join } from "../collector/index.js";
import { arrayLike, sequence } from "../sync/index.js";
import { emptyIterableIterator } from "../utils.js";
import { BitArray } from "./types.js";
const BYTE_SIZE = Uint8Array.BYTES_PER_ELEMENT * 8;
@@ -234,9 +235,7 @@ export class BitArrayImpl implements BitArray {
export class EmptyBitArray implements BitArray {
[Symbol.iterator](): Iterator<boolean, any, undefined> {
return {
next: () => ({ done: true, value: undefined })
};
return emptyIterableIterator<boolean>();
}
get length() {