import { Block, isBlockNotEqual } from "blockwise";const a: Block = { x: 0, y: 0, w: 1, h: 1 };const b: Block = { x: 0, y: 0, w: 1, h: 1 };const c: Block = { x: 0, y: 1, w: 1, h: 1 };console.log(isBlockNotEqual(a, b)); // falseconsole.log(isBlockNotEqual(a, c)); // true Copy
import { Block, isBlockNotEqual } from "blockwise";const a: Block = { x: 0, y: 0, w: 1, h: 1 };const b: Block = { x: 0, y: 0, w: 1, h: 1 };const c: Block = { x: 0, y: 1, w: 1, h: 1 };console.log(isBlockNotEqual(a, b)); // falseconsole.log(isBlockNotEqual(a, c)); // true
Example