JSPM

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

Adaptation of react-addons-shallow-compare, for independent usage

Package Exports

  • enzyme-shallow-equal
  • enzyme-shallow-equal/build/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 (enzyme-shallow-equal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

enzyme-shallow-equal

This is the implementation of shallowEqual that enzyme uses.

It's adapted from https://github.com/facebook/react/blob/144328fe81719e916b946e22660479e31561bb0b/packages/shared/shallowEqual.js#L36-L68