UNPKG

mdx-m3-viewer

Version:

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

12 lines (11 loc) 270 B
/** * Returns an array that only contains unique values found in the source array. * * @param {array} a * @return {array} */ export default function unique(a) { return a.reverse().filter((e, i, arr) => { return arr.indexOf(e, i + 1) === -1; }).reverse(); }