https://git.jolheiser.com/tailwind-ctp-intellisense.git
1 2 3 4 5 6 7 8 9 10 11
export function dedupe<T>(arr: Array<T>): Array<T> { return arr.filter((value, index, self) => self.indexOf(value) === index) } export function ensureArray<T>(value: T | T[]): T[] { return Array.isArray(value) ? value : [value] } export function flatten<T>(arrays: T[][]): T[] { return [].concat.apply([], arrays) }