Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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)))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #combinations #js
ADD COMMENT
Topic
Name
8+6 =