is-shallow-equal: Documentation: Define shallow equality with inequality examples #7801
Labels
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Package] is-shallow-equal
/packages/is-shallow-equal
[Type] Developer Documentation
Documentation for developers
[Type] Task
Issues or PRs that have been broken down into an individual action to take
@aduth commented on Wed May 23 2018
Related Slack discussion: https://wordpress.slack.com/archives/C5UNMSU4R/p1526840808000021
@wordpress/is-shallow-equal
includes the following text to describe its purpose:It's not entirely clear by this description the behavior that should be expected by the following example:
...except when the reader understands referential inequality of two newly-defined objects.
We should clarify in the documentation...
_.isEqual
as an alternative@wordpress/is-shallow-equal
may returnfalse
where a deepisEqual
would returntrue
(as above)The text was updated successfully, but these errors were encountered: