UNPKG

mdx-m3-viewer

Version:

A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.

9 lines (8 loc) 243 B
/** * Returns an array that only contains unique values found in the source array. */ export default function unique(a: any[]) { return a.reverse().filter((e, i, arr) => { return arr.indexOf(e, i + 1) === -1; }).reverse(); }