Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equality comparisons of arrays with objects fail #5

Closed
mjackson opened this issue Dec 16, 2015 · 1 comment
Closed

Equality comparisons of arrays with objects fail #5

mjackson opened this issue Dec 16, 2015 · 1 comment

Comments

@mjackson
Copy link

Using version 1.4.1:

let arr1 = [
  {
    id: 0,
    text: 'Array Object 0',
    boo: false
  },
  {
    id: 1,
    text: 'Array Object 1',
    boo: false
  }
];

let arr2 = [
  {
    id: 0,
    text: 'Array Object 0',
    boo: true // value of boo is changed to true here
  },
  {
    id: 1,
    text: 'Array Object 1',
    boo: false
  }
];

isEqual(arr1, arr2); // true

See also mjackson/expect#53

@ljharb ljharb closed this as completed in 1c28a19 Dec 16, 2015
@ljharb
Copy link
Member

ljharb commented Dec 16, 2015

Released as v1.4.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants