Function isBlockEqual

  • Example


    import { Block, isBlockEqual } 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(isBlockEqual(a, b)); // true
    console.log(isBlockEqual(a, c)); // false

    Parameters

    Returns boolean

Generated using TypeDoc