massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / esnext.typed-array.unique-by.js
1 'use strict';
2 var uncurryThis = require('../internals/function-uncurry-this');
3 var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
4 var $arrayUniqueBy = require('../internals/array-unique-by');
5 var fromSpeciesAndList = require('../internals/typed-array-from-species-and-list');
6
7 var aTypedArray = ArrayBufferViewCore.aTypedArray;
8 var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
9 var arrayUniqueBy = uncurryThis($arrayUniqueBy);
10
11 // `%TypedArray%.prototype.uniqueBy` method
12 // https://github.com/tc39/proposal-array-unique
13 exportTypedArrayMethod('uniqueBy', function uniqueBy(resolver) {
14   return fromSpeciesAndList(this, arrayUniqueBy(aTypedArray(this), resolver));
15 });