1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 02:44:45 +00:00

chore(core/stdlib): fix lint

This commit is contained in:
2026-02-15 02:50:54 +07:00
parent 50b1498f3e
commit 68afec40b7
6 changed files with 20 additions and 20 deletions

View File

@@ -52,7 +52,7 @@ export class BinaryHeap<T> implements BinaryHeapLike<T> {
constructor(initialValues?: T[] | T, options?: BinaryHeapOptions<T>) {
this.comparator = options?.comparator ?? defaultComparator;
if (initialValues != null) {
if (initialValues !== null && initialValues !== undefined) {
const items = isArray(initialValues) ? initialValues : [initialValues];
this.heap.push(...items);
this.heapify();