Message from JavaScript discussions
June 2018
— Why do you need to compare objects?
I’d recommend my algorithm but the production release is too outdated and the master branch has a stupid bug exactly just in that one algorithm, lol
— Do you know Nodejs ?. If yes join the team in the new exchanger from swiss. if you interest please send their email burexexchangegmail.com.
— Do you know Nodejs ?. If yes join the team in the new exchanger from swiss. if you interest please send their email burexexchangegmail.com.
— > Join
> Spam something in poor English
> ...
> Profit??
— I made bookstore app in angular . each books description has one button at the end add to library or remove from library. So before displaying any books description I do check if that book(object) is available in array of books(array of objects) which I already have added in library. If its present in array I display remove from library button or vice versa.
Probably this isn't best approach to make something like that but my whole code ain't less than pile of shit so I just decided to compare two objects 🙈
— You should probably store some book IDs and just compare those
— But I use data stored in those objects to render page so that I don't have to make api calls again and again :3
— Store IDs in the objects too
— Yeah thats what I did :D
Instead of comparing whole objects I am comparing ids only
— Great
— Thanks m8