UNPKG

521 BJavaScriptView Raw
1'use strict';
2var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3var uncurryThis = require('../internals/function-uncurry-this');
4
5var aTypedArray = ArrayBufferViewCore.aTypedArray;
6var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
7var $join = uncurryThis([].join);
8
9// `%TypedArray%.prototype.join` method
10// https://tc39.es/ecma262/#sec-%typedarray%.prototype.join
11exportTypedArrayMethod('join', function join(separator) {
12 return $join(aTypedArray(this), separator);
13});