You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fixed-endian-factory/README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -727,6 +727,35 @@ var str = arr.toString();
727
727
// returns '1,2,3'
728
728
```
729
729
730
+
<aname="method-join"></a>
731
+
732
+
#### TypedArrayFE.prototype.join( \[separator] )
733
+
734
+
Serializes the array elements into a string, with elements separated by the specified `separator`. If no `separator` is provided, a comma (`,`) is used as the default.
735
+
736
+
```javascript
737
+
var Float64ArrayFE =fixedEndianFactory( 'float64' );
738
+
739
+
var arr =newFloat64ArrayFE( 'little-endian', [ 1.0, 2.0, 3.0 ] );
740
+
741
+
var str =arr.join();
742
+
// returns '1,2,3'
743
+
744
+
str =arr.join( ' - ' );
745
+
// returns '1 - 2 - 3'
746
+
```
747
+
748
+
If the provided `separator` is not a string, it is coerced to a string.
749
+
750
+
```javascript
751
+
var Float64ArrayFE =fixedEndianFactory( 'float64' );
752
+
753
+
var arr =newFloat64ArrayFE( 'little-endian', [ 1.0, 2.0, 3.0 ] );
0 commit comments