Nurturing Pluto's Martians

    simple-shallow-diff-ts

    1.1.1 • Public • Published

    Simple implementation in Typescript of shallow diff.

    Add the library to your project

    npm i simple-shallow-diff-ts
    

    Import and use

    import {diff} from 'simple-shallow-diff-ts/diff';
     
    diff(
        { a: 1, b: 2, c: 3 },
        { a: 10,      c: 3, d: 4 },
    );
    // It will return
    {
        added['d'], 
        updated['a'], 
        deleted['b']
    }

    Test

    yarn install
    yarn test

    Install

    npm i simple-shallow-diff-ts

    DownloadsWeekly Downloads

    1

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    2.92 kB

    Total Files

    9

    Last publish

    Collaborators

    • carlsa