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
the havePathInCommon function of chapter 5 uses lodash intersection which will always return false.
havePathInCommon
intersection
false
data-oriented-programming/src/chapter05/paths-in-common.js
Lines 1 to 4 in 07bf95b
havePathInCommon uses informationPaths which returns an array of the paths, where each path is an array with keys as values of the array.
informationPaths
A return value example of informationPaths would be:
[ ['library', 'catalog', 'authorsById', '1', 'name'] , ['library', 'userManagement', 'userssById', '1', 'name'] ]
but lodash's intersection will not deeply check this nested array, so if the above path was compared with
[ ['library', 'catalog', 'authorsById', '1', 'name'] , ]
It will return false because arrays are reference type.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
the
havePathInCommon
function of chapter 5 uses lodashintersection
which will always returnfalse
.data-oriented-programming/src/chapter05/paths-in-common.js
Lines 1 to 4 in 07bf95b
havePathInCommon
usesinformationPaths
which returns an array of the paths, where each path is an array with keys as values of the array.A return value example of
informationPaths
would be:but lodash's intersection will not deeply check this nested array, so if the above path was compared with
It will return false because arrays are reference type.
The text was updated successfully, but these errors were encountered: