JSPM

@cahmoraes93/deep-strict-equal

1.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q31977F
    • License MIT

    Pacote para trabalhar com imutabilidade e clonagem profunda de estruturas de dados

    Package Exports

    • @cahmoraes93/deep-strict-equal
    • @cahmoraes93/deep-strict-equal/dist/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cahmoraes93/deep-strict-equal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Motivation

    This package perform deep strict equal between data structures.

    Usage

    import { deepStrictEqual } from '@cahmoraes93/deep-strict-equal'
    
    deepStrictEqual({ foo: { bar: [1, 2] } }, { foo: { bar: [1, 2] } })
    //=> true
    
    deepStrictEqual({ foo: { bar: [1, 2] } }, { foo: { bar: [1, 4] } })
    //=> false
    
    deepStrictEqual({ foo: { bar: 1 } }, { foo: { bar: 1 } })
    //=> true
    
    deepStrictEqual({ foo: { bar: 1 } }, { foo: { bar: '1' } })
    //=> false