UNPKG

react-native-drawing

Version:

A React Native library that provides a canvas to perform drawing actions

21 lines (20 loc) 433 B
export class DoubleMap { constructor() { Object.defineProperty(this, "index", { enumerable: true, configurable: true, writable: true, value: new Map() }); } set(a, b) { this.index.set(a, b); this.index.set(b, a); } get(key) { return this.index.get(key); } delete(key) { return this.index.delete(key); } }