We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/1milligram/1loc/blob/cecbfa239c1d6c9d527518c157b9ea20c4140c9b/snippets/array/compare-two-arrays-regardless-of-order.md?plain=1#L10
The Set object lets you store unique values of any type, whether primitive values or object references.
And an array can have duplicate values.
So it fails simplest of tests: isEqual([1], [1, 1]); Checking for length would be incorrect too, consider such case: isEqual([1, 1, 2], [1, 2, 2]);
isEqual([1], [1, 1]);
isEqual([1, 1, 2], [1, 2, 2]);
Also concerns from #414.
And lastly one should keep in mind that:
const a = {a: 1}; const b = {...a}; a !== b; // true
Maybe it should be documented on equality function page.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/1milligram/1loc/blob/cecbfa239c1d6c9d527518c157b9ea20c4140c9b/snippets/array/compare-two-arrays-regardless-of-order.md?plain=1#L10
And an array can have duplicate values.
So it fails simplest of tests:
isEqual([1], [1, 1]);
Checking for length would be incorrect too, consider such case:
isEqual([1, 1, 2], [1, 2, 2]);
Also concerns from #414.
And lastly one should keep in mind that:
Maybe it should be documented on equality function page.
The text was updated successfully, but these errors were encountered: