Skip to content

Instantly share code, notes, and snippets.

@akhayoon
Created April 19, 2021 16:35

Revisions

  1. akhayoon created this gist Apr 19, 2021.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    const equalsWithStringify = (a, b) => JSON.stringify(a) === jSON.stringify(b);

    const equalsWithEvery = (a, b) => a.lenght === b.length && a.every((v, i) => v === b[i]);

    const a = [1, 2, 3];
    const b = [1, 2, 3];