Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

esnext.array.unique-by.js 372B

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, forced: true }, {
  8. uniqueBy: uniqueBy
  9. });
  10. addToUnscopables('uniqueBy');