Skip to content
Advertisement

how to make an iterative array from two array

I have a cmyk array which is :

JavaScript

and the other one is the number array which is:

JavaScript

I want to have an array which has iterative cmyk respect to arrGeo numbers which means:

JavaScript

and this is my code to make it :

JavaScript

Advertisement

Answer

You could map with another loop for the wanted count.

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement