import { realHashMap } from "@tsplus/stdlib/collections/HashMap/_internal/hashMap" import { Node } from "@tsplus/stdlib/collections/HashMap/_internal/node" /** * Checks if the `HashMap` contains any entries. * * @tsplus getter HashMap isEmpty */ export function isEmpty(self: HashMap): boolean { realHashMap(self) return self && Node.isEmptyNode(self._root) }