UNPKG

minimal-polyfills

Version:

An ultra light-weight, nonexhaustive, polyfills library

8 lines (3 loc) 199 B
import { Polyfill as SetPolyfill } from "./Set"; export const Polyfill: { new<T extends object>(values?: T[]): WeakSet<T> } = typeof WeakSet !== "undefined" ? WeakSet : SetPolyfill ;