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
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict';
|
---|
| 2 | var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
---|
| 3 | var arrayUniqueBy = require('../internals/array-unique-by');
|
---|
| 4 | var fromSpeciesAndList = require('../internals/typed-array-from-species-and-list');
|
---|
| 5 |
|
---|
| 6 | var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
---|
| 7 | var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
---|
| 8 |
|
---|
| 9 | // `%TypedArray%.prototype.uniqueBy` method
|
---|
| 10 | // https://github.com/tc39/proposal-array-unique
|
---|
| 11 | exportTypedArrayMethod('uniqueBy', function uniqueBy(resolver) {
|
---|
| 12 | return fromSpeciesAndList(this, arrayUniqueBy.call(aTypedArray(this), resolver));
|
---|
| 13 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.