I have an array of strings, how I can make combination of elements two at a time separated by underscore.
var array = ['a', 'b', 'c'];
the output should be ['a_b', 'a_c', 'b_c']
How I can do this in Javascript?
Please note that this is different from Permutations in JavaScript? since we need a combination of two and cannot be array elements cannot be replicated.
Thanks.