refactor
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user