I have an array of type String in Javascript. Eg: ["ab", "cd", "ef", "gh"] This array is not fixed & is alphabetically ordered.
I want an output like this:
ab
abcd
abef
abgh
abcdef
abcdgh
abefgh
abcdefgh
cd
cdef
cdgh
cdefgh
ef
efgh
See Question&Answers more detail:os