Skip to content

Tag: arrays

Languages Statistic

I have to implement the “getLanguagesStatistic” function, which will help the IT magazine summarize 2019 in terms of the popularity of programming languages. As input, the function receives an array of user reviews. You need to return an object in the format {languageName: count, anotherLanguageNa…

JavaScript: Rebuild Array of Objects using Reduce

I have an array of objects that I’m trying to rebuild without any success: I have the below code which produces the following undesired result: I am stuck on trying to convert options to an Array of Objects with value and label as properties. Also im struggling trying to reword TemplateCategory property…

Merging non-matching timeseries arrays in JS?

My question is of data manipulation. Say I have multiple data arrays with the structure as follows: With real data it could look e.g. like this: The I need to merge multiple of such arrays into one, which is is easy if the time axes are matching. If I have e.g. three short sample arrays: they would be merged …