UNPKG

lifehash

Version:

TypeScript/JavaScript implementation of LifeHash, a visual hash algorithm

15 lines (14 loc) 288 B
export class Point { constructor(x, y) { this.x = x; this.y = y; } equals(other) { if (other instanceof Point) { return other.x === this.x && other.y === this.y; } else { return other === this; } } }