Skip to main content
Module

x/cache_mapset/types.ts>SetLike

Maps and Sets with cache replacement policies, TC39 proposal-policy-map-set implementation
Latest
interface SetLike
import { type SetLike } from "https://deno.land/x/cache_mapset@1.0.0/types.ts";

Set without Iterator and its related members.

Properties

size: number

The number of values.

has: (value: T) => boolean

Whether has the given value.

add: (value: T) => this

Adds the given value.

delete: (value: T) => boolean

Deletes the given value.

clear: () => void

Removes all values.