source: trip-planner-front/node_modules/core-js/modules/esnext.typed-array.unique-by.js@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 605 bytes
Line 
1'use strict';
2var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3var arrayUniqueBy = require('../internals/array-unique-by');
4var fromSpeciesAndList = require('../internals/typed-array-from-species-and-list');
5
6var aTypedArray = ArrayBufferViewCore.aTypedArray;
7var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
8
9// `%TypedArray%.prototype.uniqueBy` method
10// https://github.com/tc39/proposal-array-unique
11exportTypedArrayMethod('uniqueBy', function uniqueBy(resolver) {
12 return fromSpeciesAndList(this, arrayUniqueBy.call(aTypedArray(this), resolver));
13});
Note: See TracBrowser for help on using the repository browser.