uniq.js 265 B

12345678910111213
  1. 'use strict';
  2. var indexOf = require('./e-index-of')
  3. , filter = Array.prototype.filter
  4. , isFirst;
  5. isFirst = function (value, index) {
  6. return indexOf.call(this, value) === index;
  7. };
  8. module.exports = function () { return filter.call(this, isFirst, this); };