UNPKG

@steelbreeze/pivot

Version:

Minimal TypeScript / JavaScript n-cube library

10 lines (9 loc) 275 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.distinct = distinct; /** * Function to pass into Array.prototype.filter to return unique values. */ function distinct(value, index, source) { return source.indexOf(value) === index; }