export function toArray < T > ( value = [ ] ) { return Array . isArray ( value ) ? value : [ value ] ; } export function uniq < T > ( value ) { return Array . from ( new Set ( value ) ) ; } export function mergeSet < T > ( target , append ) { append . forEach ( i => target . add ( i ) ) ; return target ; }