At the beginning, I was reading tens of articles per day (2016–2017), but then in 2018 I found out that the quality of articles dropped drastically. Some writers talk about things they don’t know, biased or short sighted; the same topics coming again and again. That was still manageable. Then premium articles were every where. They came in, with…
Leandro Cesquini Pereira Thanks for your great answers. Point 2, I would like to know, how to transform Ecto results in other to pass them from a service to another? Changesets errors? Thanks in advance.
Thanks for the article, I have two questions.
That’s the purpose of arguing. Giving weak arguments or that cannot be backed is pointless since you won’t convince your opponent with those weak words. Each argument should be base on some facts, truth… otherwise is just a few people opinion that may be right but also that may be wrong.
No library has to be included. I am trying to point out that all the complex system you are building maybe Java is not at all the tool for the job.
As Nathan Cox just said, it has nothing to do with any library it’s part of the core language.
Almost all the functions in lodash are not a direct map to ES6. You still have to write your implementation to match the api of lodash. For you case of
has you just need a recursive function on
Object.keys(yourObject) and you can verify if the key is in the array with
mykeys.contains(key). Usually you have a utils package where those little functions reside and you can reuse them an save some KB.