esnext.array.unique-by.js 358 B

123456789101112
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var addToUnscopables = require('../internals/add-to-unscopables');
  4. var uniqueBy = require('../internals/array-unique-by');
  5. // `Array.prototype.uniqueBy` method
  6. // https://github.com/tc39/proposal-array-unique
  7. $({ target: 'Array', proto: true }, {
  8. uniqueBy: uniqueBy
  9. });
  10. addToUnscopables('uniqueBy');