sum of an array | javascript

preview_player
Показать описание

#javascript #js #nodejs #node
Рекомендации по теме
Комментарии
Автор

Yes, but the one who seeks knowledge will get it. Array.prototype.reduce can solve the problem too, but what if have {}? Then, we have Object.entries, Object.values, Object.keys. The first two use Reduce logic as shown in Lodash code, and Reflect.ownKeys (all keys enumerable and nonenumerable: the first ones are those listed in Object definition, and others are declared outside) where Reduce = Function.bind(Function.call, Array.prototype.reduce);

sergeiivanov
Автор

What if there are 2 separate arrays like function sumArrays (array1, array2)

superman
Автор

What is with every single tutorial being “I’m going to write the code by my raw memory and knowledge” instead of explaining why your using a value, and its purpose, why does it represent this, etc. Beyond difficult

magiic
visit shbcf.ru