Answers for "get combinations of two js"

-1

get combinations of two js

var array1=["A","B","C"];

var array2=["1","2","3","4"];

console.log(array1.flatMap(d => array2.map(v => d + v)))
Posted by: Guest on October-13-2020

Code answers related to "get combinations of two js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language