function flatten < T > ( arr ) { return arr . reduce ( ( acc , val ) => acc . concat ( val ) , [ ] ) ; } export function getUniques < T > ( ... args ) { return Array . from ( new Set ( flatten ( args ) ) ) ; }