convert multilist to single list javascript code example
Example 1: python flatten list
itertools.chain.from_iterable(factors)
Example 2: flatten lists python
flat_list = []
for sublist in l:
for item in sublist:
flat_list.append(item)