1.0.0 • Published 6 years ago
solo-flatten v1.0.0
solo-flatten
Takes a nested array and returns a single flattened array
import flatten from 'solo-flatten';
const nest = [1, [2, 3, 4], [5, 6, 7], 8, 9, 10];
flatten(nest);
// [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
1.0.0
6 years ago