@ohos-ports/stdlib-array-uint32 0.0.0-stage → 0.2.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,1564 @@
1
- # Temporary Holding Version
1
+ <!--
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ @license Apache-2.0
4
+
5
+ Copyright (c) 2018 The Stdlib Authors.
6
+
7
+ Licensed under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License.
9
+ You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
18
+
19
+ -->
20
+
21
+
22
+ <details>
23
+ <summary>
24
+ About stdlib...
25
+ </summary>
26
+ <p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>
27
+ <p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>
28
+ <p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>
29
+ <p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>
30
+ </details>
31
+
32
+ # Uint32Array
33
+
34
+ [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
35
+
36
+ > [Typed array][mdn-typed-array] constructor which returns a [typed array][mdn-typed-array] representing an array of 32-bit unsigned integers in the platform byte order.
37
+
38
+ <!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
39
+
40
+ <section class="intro">
41
+
42
+ </section>
43
+
44
+ <!-- /.intro -->
45
+
46
+ <!-- Package usage documentation. -->
47
+
48
+ <section class="installation">
49
+
50
+ ## Installation
51
+
52
+ ```bash
53
+ npm install @stdlib/array-uint32
54
+ ```
55
+
56
+ </section>
57
+
58
+ <section class="usage">
59
+
60
+ ## Usage
61
+
62
+ ```javascript
63
+ var Uint32Array = require( '@stdlib/array-uint32' );
64
+ ```
65
+
66
+ #### Uint32Array()
67
+
68
+ A [typed array][mdn-typed-array] constructor which returns a [typed array][mdn-typed-array] representing an array of 32-bit unsigned integers in the platform byte order.
69
+
70
+ <!-- eslint-disable stdlib/require-globals -->
71
+
72
+ ```javascript
73
+ var arr = new Uint32Array();
74
+ // returns <Uint32Array>
75
+ ```
76
+
77
+ #### Uint32Array( length )
78
+
79
+ Returns a [typed array][mdn-typed-array] having a specified length.
80
+
81
+ <!-- eslint-disable stdlib/require-globals -->
82
+
83
+ ```javascript
84
+ var arr = new Uint32Array( 5 );
85
+ // returns <Uint32Array>[ 0, 0, 0, 0, 0 ]
86
+ ```
87
+
88
+ #### Uint32Array( typedarray )
89
+
90
+ Creates a [typed array][mdn-typed-array] from another [typed array][mdn-typed-array].
91
+
92
+ <!-- eslint-disable stdlib/require-globals -->
93
+
94
+ ```javascript
95
+ var Float32Array = require( '@stdlib/array-float32' );
96
+
97
+ var arr1 = new Float32Array( [ 5.0, 5.0, 5.0 ] );
98
+ var arr2 = new Uint32Array( arr1 );
99
+ // returns <Uint32Array>[ 5, 5, 5 ]
100
+ ```
101
+
102
+ #### Uint32Array( obj )
103
+
104
+ Creates a [typed array][mdn-typed-array] from an array-like `object` or iterable.
105
+
106
+ <!-- eslint-disable stdlib/require-globals -->
107
+
108
+ ```javascript
109
+ var arr = new Uint32Array( [ 5.0, 5.0, 5.0 ] );
110
+ // returns <Uint32Array>[ 5, 5, 5 ]
111
+ ```
112
+
113
+ #### Uint32Array( buffer\[, byteOffset\[, length]] )
114
+
115
+ Returns a [typed array][mdn-typed-array] view of an [`ArrayBuffer`][@stdlib/array/buffer].
116
+
117
+ <!-- eslint-disable stdlib/require-globals -->
118
+
119
+ ```javascript
120
+ var ArrayBuffer = require( '@stdlib/array-buffer' );
121
+
122
+ var buf = new ArrayBuffer( 16 );
123
+ var arr = new Uint32Array( buf, 0, 4 );
124
+ // returns <Uint32Array>[ 0, 0, 0, 0 ]
125
+ ```
126
+
127
+ * * *
128
+
129
+ ### Properties
130
+
131
+ <a name="static-prop-bytes-per-element"></a>
132
+
133
+ #### Uint32Array.BYTES_PER_ELEMENT
134
+
135
+ Number of bytes per view element.
136
+
137
+ <!-- eslint-disable stdlib/require-globals -->
138
+
139
+ ```javascript
140
+ var nbytes = Uint32Array.BYTES_PER_ELEMENT;
141
+ // returns 4
142
+ ```
143
+
144
+ <a name="static-prop-name"></a>
145
+
146
+ #### Uint32Array.name
147
+
148
+ [Typed array][mdn-typed-array] constructor name.
149
+
150
+ <!-- eslint-disable stdlib/require-globals -->
151
+
152
+ ```javascript
153
+ var str = Uint32Array.name;
154
+ // returns 'Uint32Array'
155
+ ```
156
+
157
+ <a name="prop-buffer"></a>
158
+
159
+ #### Uint32Array.prototype.buffer
160
+
161
+ **Read-only** property which returns the [`ArrayBuffer`][@stdlib/array/buffer] referenced by the [typed array][mdn-typed-array].
162
+
163
+ <!-- eslint-disable stdlib/require-globals -->
164
+
165
+ ```javascript
166
+ var arr = new Uint32Array( 5 );
167
+ var buf = arr.buffer;
168
+ // returns <ArrayBuffer>
169
+ ```
170
+
171
+ <a name="prop-byte-length"></a>
172
+
173
+ #### Uint32Array.prototype.byteLength
174
+
175
+ **Read-only** property which returns the length (in bytes) of the [typed array][mdn-typed-array].
176
+
177
+ <!-- eslint-disable stdlib/require-globals -->
178
+
179
+ ```javascript
180
+ var arr = new Uint32Array( 5 );
181
+ var byteLength = arr.byteLength;
182
+ // returns 20
183
+ ```
184
+
185
+ <a name="prop-byte-offset"></a>
186
+
187
+ #### Uint32Array.prototype.byteOffset
188
+
189
+ **Read-only** property which returns the offset (in bytes) of the [typed array][mdn-typed-array] from the start of its [`ArrayBuffer`][@stdlib/array/buffer].
190
+
191
+ <!-- eslint-disable stdlib/require-globals -->
192
+
193
+ ```javascript
194
+ var arr = new Uint32Array( 5 );
195
+ var byteOffset = arr.byteOffset;
196
+ // returns 0
197
+ ```
198
+
199
+ <a name="prop-bytes-per-element"></a>
200
+
201
+ #### Uint32Array.prototype.BYTES_PER_ELEMENT
202
+
203
+ Number of bytes per view element.
204
+
205
+ <!-- eslint-disable stdlib/require-globals -->
206
+
207
+ ```javascript
208
+ var arr = new Uint32Array( 5 );
209
+ var nbytes = arr.BYTES_PER_ELEMENT;
210
+ // returns 4
211
+ ```
212
+
213
+ <a name="prop-length"></a>
214
+
215
+ #### Uint32Array.prototype.length
216
+
217
+ **Read-only** property which returns the number of view elements.
218
+
219
+ <!-- eslint-disable stdlib/require-globals -->
220
+
221
+ ```javascript
222
+ var arr = new Uint32Array( 5 );
223
+ var len = arr.length;
224
+ // returns 5
225
+ ```
226
+
227
+ * * *
228
+
229
+ ### Methods
230
+
231
+ <a name="static-method-from"></a>
232
+
233
+ #### Uint32Array.from( src\[, map\[, thisArg]] )
234
+
235
+ Creates a new typed array from an array-like `object` or an iterable.
236
+
237
+ ```javascript
238
+ var arr = Uint32Array.from( [ 1, 2 ] );
239
+ // returns <Uint32Array>[ 1, 2 ]
240
+ ```
241
+
242
+ To invoke a function for each `src` value, provide a callback function.
243
+
244
+ ```javascript
245
+ function mapFcn( v ) {
246
+ return v * 2;
247
+ }
248
+
249
+ var arr = Uint32Array.from( [ 1, 2 ], mapFcn );
250
+ // returns <Uint32Array>[ 2, 4 ]
251
+ ```
252
+
253
+ A callback function is provided two arguments:
254
+
255
+ - `value`: source value.
256
+ - `index`: source index..
257
+
258
+ To set the callback execution context, provide a `thisArg`.
259
+
260
+ ```javascript
261
+ function mapFcn( v ) {
262
+ this.count += 1;
263
+ return v * 2;
264
+ }
265
+
266
+ var ctx = {
267
+ 'count': 0
268
+ };
269
+
270
+ var arr = Uint32Array.from( [ 1, 2 ], mapFcn, ctx );
271
+ // returns <Uint32Array>[ 2, 4 ]
272
+
273
+ var n = ctx.count;
274
+ // returns 2
275
+ ```
276
+
277
+ <a name="static-method-of"></a>
278
+
279
+ #### Uint32Array.of( element0\[, element1\[, ...elementN]] )
280
+
281
+ Creates a new typed array from a variable number of arguments.
282
+
283
+ ```javascript
284
+ var arr = Uint32Array.of( 1, 2 );
285
+ // returns <Uint32Array>[ 1, 2 ]
286
+ ```
287
+
288
+ <a name="method-copy-within"></a>
289
+
290
+ #### Uint32Array.prototype.copyWithin( target, start\[, end] )
291
+
292
+ Copies a sequence of elements within an array starting at `start` and ending at `end` (non-inclusive) to the position starting at `target`.
293
+
294
+ <!-- eslint-disable stdlib/require-globals -->
295
+
296
+ ```javascript
297
+ var arr = new Uint32Array( [ 1, 2, 3, 4, 5 ] );
298
+
299
+ // Copy the last two elements to the first two elements:
300
+ arr.copyWithin( 0, 3 );
301
+
302
+ var v = arr[ 0 ];
303
+ // returns 4
304
+
305
+ v = arr[ 1 ];
306
+ // returns 5
307
+ ```
308
+
309
+ By default, `end` equals the number of array elements (i.e., one more than the last array index). To limit the sequence length, provide an `end` argument.
310
+
311
+ <!-- eslint-disable stdlib/require-globals -->
312
+
313
+ ```javascript
314
+ var arr = new Uint32Array( [ 1, 2, 3, 4, 5 ] );
315
+
316
+ // Copy the first two elements to the last two elements:
317
+ arr.copyWithin( 3, 0, 2 );
318
+
319
+ var v = arr[ 3 ];
320
+ // returns 1
321
+
322
+ v = arr[ 4 ];
323
+ // returns 2
324
+ ```
325
+
326
+ When a `target`, `start`, and/or `end` index is negative, the respective index is determined relative to the last array element. The following example achieves the same behavior as the previous example:
327
+
328
+ <!-- eslint-disable stdlib/require-globals -->
329
+
330
+ ```javascript
331
+ var arr = new Uint32Array( [ 1, 2, 3, 4, 5 ] );
332
+
333
+ // Copy the first two elements to the last two elements:
334
+ arr.copyWithin( -2, -5, -3 );
335
+
336
+ var v = arr[ 3 ];
337
+ // returns 1
338
+
339
+ v = arr[ 4 ];
340
+ // returns 2
341
+ ```
342
+
343
+ <a name="method-entries"></a>
344
+
345
+ #### Uint32Array.prototype.entries()
346
+
347
+ Returns an iterator for iterating over array key-value pairs.
348
+
349
+ <!-- eslint-disable stdlib/require-globals -->
350
+
351
+ ```javascript
352
+ var arr = new Uint32Array( [ 1, 2 ] );
353
+
354
+ // Create an iterator:
355
+ var it = arr.entries();
356
+
357
+ // Iterate over key-value pairs...
358
+ var v = it.next().value;
359
+ // returns [ 0, 1 ]
360
+
361
+ v = it.next().value;
362
+ // returns [ 1, 2 ]
363
+
364
+ var bool = it.next().done;
365
+ // returns true
366
+ ```
367
+
368
+ <a name="method-every"></a>
369
+
370
+ #### Uint32Array.prototype.every( predicate\[, thisArg] )
371
+
372
+ Tests whether all array elements pass a test implemented by a `predicate` function.
373
+
374
+ <!-- eslint-disable stdlib/require-globals -->
375
+
376
+ ```javascript
377
+ function predicate( v ) {
378
+ return ( v <= 1 );
379
+ }
380
+
381
+ var arr = new Uint32Array( [ 1, 2 ] );
382
+
383
+ var bool = arr.every( predicate );
384
+ // returns false
385
+ ```
386
+
387
+ A `predicate` function is provided three arguments:
388
+
389
+ - `value`: array element.
390
+ - `index`: array index.
391
+ - `arr`: array on which the method is invoked.
392
+
393
+ To set the callback execution context, provide a `thisArg`.
394
+
395
+ <!-- eslint-disable stdlib/require-globals -->
396
+
397
+ ```javascript
398
+ function predicate( v ) {
399
+ this.count += 1;
400
+ return ( v >= 1 );
401
+ }
402
+
403
+ var ctx = {
404
+ 'count': 0
405
+ };
406
+
407
+ var arr = new Uint32Array( [ 1, 2 ] );
408
+
409
+ var bool = arr.every( predicate, ctx );
410
+ // returns true
411
+
412
+ var n = ctx.count;
413
+ // returns 2
414
+ ```
415
+
416
+ <a name="method-fill"></a>
417
+
418
+ #### Uint32Array.prototype.fill( value\[, start\[, end]] )
419
+
420
+ Fills an array from a `start` index to an `end` index (non-inclusive) with a provided `value`.
421
+
422
+ <!-- eslint-disable stdlib/require-globals -->
423
+
424
+ ```javascript
425
+ var arr = new Uint32Array( 2 );
426
+
427
+ // Set all array elements to the same value:
428
+ arr.fill( 2 );
429
+
430
+ var v = arr[ 0 ];
431
+ // returns 2
432
+
433
+ v = arr[ 1 ];
434
+ // returns 2
435
+
436
+ // Set all array elements starting from the first index to the same value:
437
+ arr.fill( 3, 1 );
438
+
439
+ v = arr[ 0 ];
440
+ // returns 2
441
+
442
+ v = arr[ 1 ];
443
+ // returns 3
444
+
445
+ // Set all array elements, except the last element, to the same value:
446
+ arr.fill( 4, 0, arr.length-1 );
447
+
448
+ v = arr[ 0 ];
449
+ // returns 4
450
+
451
+ v = arr[ 1 ];
452
+ // returns 3
453
+ ```
454
+
455
+ When a `start` and/or `end` index is negative, the respective index is determined relative to the last array element.
456
+
457
+ <!-- eslint-disable stdlib/require-globals -->
458
+
459
+ ```javascript
460
+ var arr = new Uint32Array( 2 );
461
+
462
+ // Set all array elements, except the last element, to the same value:
463
+ arr.fill( 2, -arr.length, -1 );
464
+
465
+ var v = arr[ 0 ];
466
+ // returns 2
467
+
468
+ v = arr[ 1 ];
469
+ // returns 0
470
+ ```
471
+
472
+ <a name="method-filter"></a>
473
+
474
+ #### Uint32Array.prototype.filter( predicate\[, thisArg] )
475
+
476
+ Creates a new array (of the same data type as the host array) which includes those elements for which a `predicate` function returns a truthy value.
477
+
478
+ <!-- eslint-disable stdlib/require-globals -->
479
+
480
+ ```javascript
481
+ function predicate( v ) {
482
+ return ( v >= 2 );
483
+ }
484
+
485
+ var arr1 = new Uint32Array( [ 1, 2, 3 ] );
486
+
487
+ var arr2 = arr1.filter( predicate );
488
+ // returns <Uint32Array>[ 2, 3 ]
489
+ ```
490
+
491
+ If a `predicate` function does not return a truthy value for any array element, the method returns an empty array.
492
+
493
+ <!-- eslint-disable stdlib/require-globals -->
494
+
495
+ ```javascript
496
+ function predicate( v ) {
497
+ return ( v >= 10 );
498
+ }
499
+
500
+ var arr1 = new Uint32Array( [ 1, 2, 3 ] );
501
+
502
+ var arr2 = arr1.filter( predicate );
503
+ // returns <Uint32Array>[]
504
+ ```
505
+
506
+ A `predicate` function is provided three arguments:
507
+
508
+ - `value`: array element.
509
+ - `index`: array index.
510
+ - `arr`: array on which the method is invoked.
511
+
512
+ To set the callback execution context, provide a `thisArg`.
513
+
514
+ <!-- eslint-disable stdlib/require-globals -->
515
+
516
+ ```javascript
517
+ function predicate( v ) {
518
+ this.count += 1;
519
+ return ( v >= 2 );
520
+ }
521
+
522
+ var ctx = {
523
+ 'count': 0
524
+ };
525
+
526
+ var arr1 = new Uint32Array( [ 1, 2, 3 ] );
527
+
528
+ var arr2 = arr1.filter( predicate, ctx );
529
+
530
+ var n = ctx.count;
531
+ // returns 3
532
+ ```
533
+
534
+ <a name="method-find"></a>
535
+
536
+ #### Uint32Array.prototype.find( predicate\[, thisArg] )
537
+
538
+ Returns the first array element for which a provided `predicate` function returns a truthy value.
539
+
540
+ <!-- eslint-disable stdlib/require-globals -->
541
+
542
+ ```javascript
543
+ function predicate( v ) {
544
+ return ( v > 2 );
545
+ }
546
+
547
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
548
+
549
+ var v = arr.find( predicate );
550
+ // returns 3
551
+ ```
552
+
553
+ If a `predicate` function does not return a truthy value for any array element, the method returns `undefined`.
554
+
555
+ <!-- eslint-disable stdlib/require-globals -->
556
+
557
+ ```javascript
558
+ function predicate( v ) {
559
+ return ( v < 1 );
560
+ }
561
+
562
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
563
+
564
+ var v = arr.find( predicate );
565
+ // returns undefined
566
+ ```
567
+
568
+ A `predicate` function is provided three arguments:
569
+
570
+ - `value`: array element.
571
+ - `index`: array index.
572
+ - `arr`: array on which the method is invoked.
573
+
574
+ To set the callback execution context, provide a `thisArg`.
575
+
576
+ <!-- eslint-disable stdlib/require-globals -->
577
+
578
+ ```javascript
579
+ function predicate( v ) {
580
+ this.count += 1;
581
+ return ( v > 2 );
582
+ }
583
+
584
+ var ctx = {
585
+ 'count': 0
586
+ };
587
+
588
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
589
+
590
+ var v = arr.find( predicate, ctx );
591
+ // returns 3
592
+
593
+ var n = ctx.count;
594
+ // returns 3
595
+ ```
596
+
597
+ <a name="method-find-index"></a>
598
+
599
+ #### Uint32Array.prototype.findIndex( predicate\[, thisArg] )
600
+
601
+ Returns the index of the first array element for which a provided `predicate` function returns a truthy value.
602
+
603
+ <!-- eslint-disable stdlib/require-globals -->
604
+
605
+ ```javascript
606
+ function predicate( v ) {
607
+ return ( v >= 3 );
608
+ }
609
+
610
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
611
+
612
+ var idx = arr.findIndex( predicate );
613
+ // returns 2
614
+ ```
615
+
616
+ If a `predicate` function does not return a truthy value for any array element, the method returns `-1`.
617
+
618
+ <!-- eslint-disable stdlib/require-globals -->
619
+
620
+ ```javascript
621
+ function predicate( v ) {
622
+ return ( v < 1 );
623
+ }
624
+
625
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
626
+
627
+ var idx = arr.findIndex( predicate );
628
+ // returns -1
629
+ ```
630
+
631
+ A `predicate` function is provided three arguments:
632
+
633
+ - `value`: array element.
634
+ - `index`: array index.
635
+ - `arr`: array on which the method is invoked.
636
+
637
+ To set the callback execution context, provide a `thisArg`.
638
+
639
+ <!-- eslint-disable stdlib/require-globals -->
640
+
641
+ ```javascript
642
+ function predicate( v ) {
643
+ this.count += 1;
644
+ return ( v >= 3 );
645
+ }
646
+
647
+ var ctx = {
648
+ 'count': 0
649
+ };
650
+
651
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
652
+
653
+ var idx = arr.findIndex( predicate, ctx );
654
+ // returns 2
655
+
656
+ var n = ctx.count;
657
+ // returns 3
658
+ ```
659
+
660
+ <a name="method-for-each"></a>
661
+
662
+ #### Uint32Array.prototype.forEach( fcn\[, thisArg] )
663
+
664
+ Invokes a callback for each array element.
665
+
666
+ <!-- eslint-disable stdlib/require-globals -->
667
+
668
+ ```javascript
669
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
670
+
671
+ var str = '';
672
+
673
+ function fcn( v, i ) {
674
+ str += i + ':' + v;
675
+ if ( i < arr.length-1 ) {
676
+ str += ' ';
677
+ }
678
+ }
679
+
680
+ arr.forEach( fcn );
681
+
682
+ console.log( str );
683
+ // => '0:1 1:2 2:3'
684
+ ```
685
+
686
+ The callback is provided three arguments:
687
+
688
+ - `value`: array element.
689
+ - `index`: array index.
690
+ - `arr`: array on which the method is invoked.
691
+
692
+ To set the callback execution context, provide a `thisArg`.
693
+
694
+ <!-- eslint-disable stdlib/require-globals -->
695
+
696
+ ```javascript
697
+ function fcn() {
698
+ this.count += 1;
699
+ }
700
+
701
+ var ctx = {
702
+ 'count': 0
703
+ };
704
+
705
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
706
+
707
+ arr.forEach( fcn, ctx );
708
+
709
+ var n = ctx.count;
710
+ // returns 3
711
+ ```
712
+
713
+ <a name="method-includes"></a>
714
+
715
+ #### Uint32Array.prototype.includes( searchElement\[, fromIndex] )
716
+
717
+ Returns a `boolean` indicating whether an array includes a search element.
718
+
719
+ <!-- eslint-disable stdlib/require-globals -->
720
+
721
+ ```javascript
722
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
723
+
724
+ var bool = arr.includes( 3 );
725
+ // returns true
726
+
727
+ bool = arr.includes( 0 );
728
+ // returns false
729
+ ```
730
+
731
+ By default, the method searches the entire array (`fromIndex = 0`). To begin searching from a specific array index, provide a `fromIndex`.
732
+
733
+ <!-- eslint-disable stdlib/require-globals -->
734
+
735
+ ```javascript
736
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
737
+
738
+ var bool = arr.includes( 1, 1 );
739
+ // returns false
740
+ ```
741
+
742
+ When a `fromIndex` is negative, the starting index is resolved relative to the last array element.
743
+
744
+ <!-- eslint-disable stdlib/require-globals -->
745
+
746
+ ```javascript
747
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
748
+
749
+ var bool = arr.includes( 1, -2 );
750
+ // returns false
751
+ ```
752
+
753
+ <a name="method-index-of"></a>
754
+
755
+ #### Uint32Array.prototype.indexOf( searchElement\[, fromIndex] )
756
+
757
+ Returns the index of the first array element strictly equal to a search element.
758
+
759
+ <!-- eslint-disable stdlib/require-globals -->
760
+
761
+ ```javascript
762
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
763
+
764
+ var idx = arr.indexOf( 3 );
765
+ // returns 2
766
+
767
+ idx = arr.indexOf( 0 );
768
+ // returns -1
769
+ ```
770
+
771
+ By default, the method searches the entire array (`fromIndex = 0`). To begin searching from a specific array index, provide a `fromIndex`.
772
+
773
+ <!-- eslint-disable stdlib/require-globals -->
774
+
775
+ ```javascript
776
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
777
+
778
+ var idx = arr.indexOf( 1, 1 );
779
+ // returns -1
780
+ ```
781
+
782
+ When a `fromIndex` is negative, the starting index is resolved relative to the last array element.
783
+
784
+ <!-- eslint-disable stdlib/require-globals -->
785
+
786
+ ```javascript
787
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
788
+
789
+ var idx = arr.indexOf( 1, -2 );
790
+ // returns -1
791
+ ```
792
+
793
+ <a name="method-join"></a>
794
+
795
+ #### Uint32Array.prototype.join( \[separator] )
796
+
797
+ Serializes an array by joining all array elements as a string.
798
+
799
+ <!-- eslint-disable stdlib/require-globals -->
800
+
801
+ ```javascript
802
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
803
+
804
+ var str = arr.join();
805
+ // returns '1,2,3'
806
+ ```
807
+
808
+ By default, the method delineates array elements using a comma `,`. To specify a custom separator, provide a `separator` string.
809
+
810
+ <!-- eslint-disable stdlib/require-globals -->
811
+
812
+ ```javascript
813
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
814
+
815
+ var str = arr.join( '|' );
816
+ // returns '1|2|3'
817
+ ```
818
+
819
+ <a name="method-keys"></a>
820
+
821
+ #### Uint32Array.prototype.keys()
822
+
823
+ Returns an iterator for iterating over array keys.
824
+
825
+ <!-- eslint-disable stdlib/require-globals -->
826
+
827
+ ```javascript
828
+ var arr = new Uint32Array( [ 1, 2 ] );
829
+
830
+ // Create an iterator:
831
+ var it = arr.keys();
832
+
833
+ // Iterate over keys...
834
+ var v = it.next().value;
835
+ // returns 0
836
+
837
+ v = it.next().value;
838
+ // returns 1
839
+
840
+ var bool = it.next().done;
841
+ // returns true
842
+ ```
843
+
844
+ <a name="method-last-index-of"></a>
845
+
846
+ #### Uint32Array.prototype.lastIndexOf( searchElement\[, fromIndex] )
847
+
848
+ Returns the index of the last array element strictly equal to a search element, iterating from right to left.
849
+
850
+ <!-- eslint-disable stdlib/require-globals -->
851
+
852
+ ```javascript
853
+ var arr = new Uint32Array( [ 1, 0, 2, 0, 1 ] );
854
+
855
+ var idx = arr.lastIndexOf( 0 );
856
+ // returns 3
857
+
858
+ idx = arr.lastIndexOf( 3 );
859
+ // returns -1
860
+ ```
861
+
862
+ By default, the method searches the entire array (`fromIndex = -1`). To begin searching from a specific array index, provide a `fromIndex`.
863
+
864
+ <!-- eslint-disable stdlib/require-globals -->
865
+
866
+ ```javascript
867
+ var arr = new Uint32Array( [ 1, 0, 2, 0, 1 ] );
868
+
869
+ var idx = arr.lastIndexOf( 0, 2 );
870
+ // returns 1
871
+ ```
872
+
873
+ When a `fromIndex` is negative, the starting index is resolved relative to the last array element.
874
+
875
+ <!-- eslint-disable stdlib/require-globals -->
876
+
877
+ ```javascript
878
+ var arr = new Uint32Array( [ 1, 0, 2, 0, 1 ] );
879
+
880
+ var idx = arr.lastIndexOf( 0, -3 );
881
+ // returns 1
882
+ ```
883
+
884
+ <a name="method-map"></a>
885
+
886
+ #### Uint32Array.prototype.map( fcn\[, thisArg] )
887
+
888
+ Maps each array element to an element in a new array having the same data type as the host array.
889
+
890
+ <!-- eslint-disable stdlib/require-globals -->
891
+
892
+ ```javascript
893
+ function fcn( v ) {
894
+ return v * 2;
895
+ }
896
+
897
+ var arr1 = new Uint32Array( [ 1, 2, 3 ] );
898
+
899
+ var arr2 = arr1.map( fcn );
900
+ // returns <Uint32Array>[ 2, 4, 6 ]
901
+ ```
902
+
903
+ A callback is provided three arguments:
904
+
905
+ - `value`: array element.
906
+ - `index`: array index.
907
+ - `arr`: array on which the method is invoked.
908
+
909
+ To set the callback execution context, provide a `thisArg`.
910
+
911
+ <!-- eslint-disable stdlib/require-globals -->
912
+
913
+ ```javascript
914
+ function fcn( v ) {
915
+ this.count += 1;
916
+ return v * 2;
917
+ }
918
+
919
+ var ctx = {
920
+ 'count': 0
921
+ };
922
+
923
+ var arr1 = new Uint32Array( [ 1, 2, 3 ] );
924
+
925
+ var arr2 = arr1.map( fcn, ctx );
926
+
927
+ var n = ctx.count;
928
+ // returns 3
929
+ ```
930
+
931
+ <a name="method-reduce"></a>
932
+
933
+ #### Uint32Array.prototype.reduce( fcn\[, initialValue] )
934
+
935
+ Applies a function against an accumulator and each element in an array and returns the accumulated result.
936
+
937
+ <!-- eslint-disable stdlib/require-globals -->
938
+
939
+ ```javascript
940
+ function fcn( acc, v ) {
941
+ return acc + ( v*v );
942
+ }
943
+
944
+ var arr = new Uint32Array( [ 2, 1, 3 ] );
945
+
946
+ var v = arr.reduce( fcn );
947
+ // returns 12
948
+ ```
949
+
950
+ If not provided an initial value, the method invokes a provided function with the first array element as the first argument and the second array element as the second argument.
951
+
952
+ If provided an initial value, the method invokes a provided function with the initial value as the first argument and the first array element as the second argument.
953
+
954
+ <!-- eslint-disable stdlib/require-globals -->
955
+
956
+ ```javascript
957
+ function fcn( acc, v ) {
958
+ return acc + ( v*v );
959
+ }
960
+
961
+ var arr = new Uint32Array( [ 2, 1, 3 ] );
962
+
963
+ var v = arr.reduce( fcn, 0 );
964
+ // returns 14
965
+ ```
966
+
967
+ A callback is provided four arguments:
968
+
969
+ - `acc`: accumulated result.
970
+ - `value`: array element.
971
+ - `index`: array index.
972
+ - `arr`: array on which the method is invoked.
973
+
974
+ <a name="method-reduce-right"></a>
975
+
976
+ #### Uint32Array.prototype.reduceRight( fcn\[, initialValue] )
977
+
978
+ Applies a function against an accumulator and each element in an array and returns the accumulated result, iterating from right to left.
979
+
980
+ <!-- eslint-disable stdlib/require-globals -->
981
+
982
+ ```javascript
983
+ function fcn( acc, v ) {
984
+ return acc + ( v*v );
985
+ }
986
+
987
+ var arr = new Uint32Array( [ 2, 1, 3 ] );
988
+
989
+ var v = arr.reduceRight( fcn );
990
+ // returns 8
991
+ ```
992
+
993
+ If not provided an initial value, the method invokes a provided function with the last array element as the first argument and the second-to-last array element as the second argument.
994
+
995
+ If provided an initial value, the method invokes a provided function with the initial value as the first argument and the last array element as the second argument.
996
+
997
+ <!-- eslint-disable stdlib/require-globals -->
998
+
999
+ ```javascript
1000
+ function fcn( acc, v ) {
1001
+ return acc + ( v*v );
1002
+ }
1003
+
1004
+ var arr = new Uint32Array( [ 2, 1, 3 ] );
1005
+
1006
+ var v = arr.reduce( fcn, 0 );
1007
+ // returns 14
1008
+ ```
1009
+
1010
+ A callback is provided four arguments:
1011
+
1012
+ - `acc`: accumulated result.
1013
+ - `value`: array element.
1014
+ - `index`: array index.
1015
+ - `arr`: array on which the method is invoked.
1016
+
1017
+ <a name="method-reverse"></a>
1018
+
1019
+ #### Uint32Array.prototype.reverse()
1020
+
1021
+ Reverses an array **in-place** (thus mutating the array on which the method is invoked).
1022
+
1023
+ <!-- eslint-disable stdlib/require-globals -->
1024
+
1025
+ ```javascript
1026
+ var arr = new Uint32Array( [ 2, 0, 3 ] );
1027
+
1028
+ // Reverse the array:
1029
+ arr.reverse();
1030
+
1031
+ var v = arr[ 0 ];
1032
+ // returns 3
1033
+
1034
+ v = arr[ 1 ];
1035
+ // returns 0
1036
+
1037
+ v = arr[ 2 ];
1038
+ // returns 2
1039
+ ```
1040
+
1041
+ <a name="method-set"></a>
1042
+
1043
+ #### Uint32Array.prototype.set( arr\[, offset] )
1044
+
1045
+ Sets array elements.
1046
+
1047
+ <!-- eslint-disable stdlib/require-globals -->
1048
+
1049
+ ```javascript
1050
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
1051
+ // returns <Uint32Array>[ 1, 2, 3 ]
1052
+
1053
+ // Set the first two array elements:
1054
+ arr.set( [ 4, 5 ] );
1055
+
1056
+ var v = arr[ 0 ];
1057
+ // returns 4
1058
+
1059
+ v = arr[ 1 ];
1060
+ // returns 5
1061
+ ```
1062
+
1063
+ By default, the method starts writing values at the first array index. To specify an alternative index, provide an index `offset`.
1064
+
1065
+ <!-- eslint-disable stdlib/require-globals -->
1066
+
1067
+ ```javascript
1068
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
1069
+ // returns <Uint32Array>[ 1, 2, 3 ]
1070
+
1071
+ // Set the last two array elements:
1072
+ arr.set( [ 4, 5 ], 1 );
1073
+
1074
+ var v = arr[ 1 ];
1075
+ // returns 4
1076
+
1077
+ v = arr[ 2 ];
1078
+ // returns 5
1079
+ ```
1080
+
1081
+ <a name="method-slice"></a>
1082
+
1083
+ #### Uint32Array.prototype.slice( \[begin\[, end]] )
1084
+
1085
+ Copies array elements to a new array with the same underlying data type as the host array.
1086
+
1087
+ <!-- eslint-disable stdlib/require-globals -->
1088
+
1089
+ ```javascript
1090
+ var arr1 = new Uint32Array( [ 1, 2, 3 ] );
1091
+
1092
+ var arr2 = arr1.slice();
1093
+
1094
+ var bool = ( arr1 === arr2 );
1095
+ // returns false
1096
+
1097
+ bool = ( arr1.buffer === arr2.buffer );
1098
+ // returns false
1099
+
1100
+ var v = arr2[ 0 ];
1101
+ // returns 1
1102
+
1103
+ v = arr2[ 1 ];
1104
+ // returns 2
1105
+
1106
+ v = arr2[ 2 ];
1107
+ // returns 3
1108
+ ```
1109
+
1110
+ By default, the method copies elements beginning with the first array element. To specify an alternative array index at which to begin copying, provide a `begin` index (inclusive).
1111
+
1112
+ <!-- eslint-disable stdlib/require-globals -->
1113
+
1114
+ ```javascript
1115
+ var arr1 = new Uint32Array( [ 1, 2, 3 ] );
1116
+
1117
+ var arr2 = arr1.slice( 1 );
1118
+
1119
+ var len = arr2.length;
1120
+ // returns 2
1121
+
1122
+ var v = arr2[ 0 ];
1123
+ // returns 2
1124
+
1125
+ v = arr2[ 1 ];
1126
+ // returns 3
1127
+ ```
1128
+
1129
+ By default, the method copies all array elements after `begin`. To specify an alternative array index at which to end copying, provide an `end` index (exclusive).
1130
+
1131
+ <!-- eslint-disable stdlib/require-globals -->
1132
+
1133
+ ```javascript
1134
+ var arr1 = new Uint32Array( [ 1, 2, 3 ] );
1135
+
1136
+ var arr2 = arr1.slice( 0, 2 );
1137
+
1138
+ var len = arr2.length;
1139
+ // returns 2
1140
+
1141
+ var v = arr2[ 0 ];
1142
+ // returns 1
1143
+
1144
+ v = arr2[ 1 ];
1145
+ // returns 2
1146
+ ```
1147
+
1148
+ When a `begin` and/or `end` index is negative, the respective index is determined relative to the last array element.
1149
+
1150
+ <!-- eslint-disable stdlib/require-globals -->
1151
+
1152
+ ```javascript
1153
+ var arr1 = new Uint32Array( [ 1, 2, 3 ] );
1154
+
1155
+ var arr2 = arr1.slice( -arr1.length, -1 );
1156
+
1157
+ var len = arr2.length;
1158
+ // returns 2
1159
+
1160
+ var v = arr2[ 0 ];
1161
+ // returns 1
1162
+
1163
+ v = arr2[ 1 ];
1164
+ // returns 2
1165
+ ```
1166
+
1167
+ <a name="method-some"></a>
1168
+
1169
+ #### Uint32Array.prototype.some( predicate\[, thisArg] )
1170
+
1171
+ Tests whether at least one array element passes a test implemented by a `predicate` function.
1172
+
1173
+ <!-- eslint-disable stdlib/require-globals -->
1174
+
1175
+ ```javascript
1176
+ function predicate( v ) {
1177
+ return ( v >= 2 );
1178
+ }
1179
+
1180
+ var arr = new Uint32Array( [ 1, 2 ] );
1181
+
1182
+ var bool = arr.some( predicate );
1183
+ // returns true
1184
+ ```
1185
+
1186
+ A `predicate` function is provided three arguments:
1187
+
1188
+ - `value`: array element.
1189
+ - `index`: array index.
1190
+ - `arr`: array on which the method is invoked.
1191
+
1192
+ To set the callback execution context, provide a `thisArg`.
1193
+
1194
+ <!-- eslint-disable stdlib/require-globals -->
1195
+
1196
+ ```javascript
1197
+ function predicate( v ) {
1198
+ this.count += 1;
1199
+ return ( v >= 2 );
1200
+ }
1201
+
1202
+ var ctx = {
1203
+ 'count': 0
1204
+ };
1205
+
1206
+ var arr = new Uint32Array( [ 1, 1 ] );
1207
+
1208
+ var bool = arr.some( predicate, ctx );
1209
+ // returns false
1210
+
1211
+ var n = ctx.count;
1212
+ // returns 2
1213
+ ```
1214
+
1215
+ <a name="method-sort"></a>
1216
+
1217
+ #### Uint32Array.prototype.sort( \[compareFunction] )
1218
+
1219
+ Sorts an array **in-place** (thus mutating the array on which the method is invoked).
1220
+
1221
+ <!-- eslint-disable stdlib/require-globals -->
1222
+
1223
+ ```javascript
1224
+ var arr = new Uint32Array( [ 2, 3, 0 ] );
1225
+
1226
+ // Sort the array (in ascending order):
1227
+ arr.sort();
1228
+
1229
+ var v = arr[ 0 ];
1230
+ // returns 0
1231
+
1232
+ v = arr[ 1 ];
1233
+ // returns 2
1234
+
1235
+ v = arr[ 2 ];
1236
+ // returns 3
1237
+ ```
1238
+
1239
+ By default, the method sorts array elements in ascending order. To impose a custom order, provide a `compareFunction`.
1240
+
1241
+ <!-- eslint-disable stdlib/require-globals -->
1242
+
1243
+ ```javascript
1244
+ function descending( a, b ) {
1245
+ return b - a;
1246
+ }
1247
+
1248
+ var arr = new Uint32Array( [ 2, 3, 0 ] );
1249
+
1250
+ // Sort the array (in descending order):
1251
+ arr.sort( descending );
1252
+
1253
+ var v = arr[ 0 ];
1254
+ // returns 3
1255
+
1256
+ v = arr[ 1 ];
1257
+ // returns 2
1258
+
1259
+ v = arr[ 2 ];
1260
+ // returns 0
1261
+ ```
1262
+
1263
+ The comparison function is provided two array elements, `a` and `b`, per invocation, and its return value determines the sort order as follows:
1264
+
1265
+ - If the comparison function returns a value **less** than zero, then the method sorts `a` to an index lower than `b` (i.e., `a` should come **before** `b`).
1266
+ - If the comparison function returns a value **greater** than zero, then the method sorts `a` to an index higher than `b` (i.e., `b` should come **before** `a`).
1267
+ - If the comparison function returns **zero**, then the relative order of `a` and `b` _should_ remain unchanged.
1268
+
1269
+ <a name="method-subarray"></a>
1270
+
1271
+ #### Uint32Array.prototype.subarray( \[begin\[, end]] )
1272
+
1273
+ Creates a new typed array view over the same underlying [`ArrayBuffer`][@stdlib/array/buffer] and with the same underlying data type as the host array.
1274
+
1275
+ <!-- eslint-disable stdlib/require-globals -->
1276
+
1277
+ ```javascript
1278
+ var arr1 = new Uint32Array( [ 1, 2, 3 ] );
1279
+
1280
+ var arr2 = arr1.subarray();
1281
+ // returns <Uint32Array>[ 1, 2, 3 ]
1282
+
1283
+ var bool = ( arr1.buffer === arr2.buffer );
1284
+ // returns true
1285
+ ```
1286
+
1287
+ By default, the method creates a typed array view beginning with the first array element. To specify an alternative array index at which to begin, provide a `begin` index (inclusive).
1288
+
1289
+ <!-- eslint-disable stdlib/require-globals -->
1290
+
1291
+ ```javascript
1292
+ var arr1 = new Uint32Array( [ 1, 2, 3 ] );
1293
+
1294
+ var arr2 = arr1.subarray( 1 );
1295
+ // returns <Uint32Array>[ 2, 3 ]
1296
+
1297
+ var bool = ( arr1.buffer === arr2.buffer );
1298
+ // returns true
1299
+ ```
1300
+
1301
+ By default, the method creates a typed array view which includes all array elements after `begin`. To limit the number of array elements after `begin`, provide an `end` index (exclusive).
1302
+
1303
+ <!-- eslint-disable stdlib/require-globals -->
1304
+
1305
+ ```javascript
1306
+ var arr1 = new Uint32Array( [ 1, 2, 3 ] );
1307
+
1308
+ var arr2 = arr1.subarray( 0, 2 );
1309
+ // returns <Uint32Array>[ 1, 2 ]
1310
+
1311
+ var bool = ( arr1.buffer === arr2.buffer );
1312
+ // returns true
1313
+ ```
1314
+
1315
+ When a `begin` and/or `end` index is negative, the respective index is determined relative to the last array element.
1316
+
1317
+ <!-- eslint-disable stdlib/require-globals -->
1318
+
1319
+ ```javascript
1320
+ var arr1 = new Uint32Array( [ 1, 2, 3 ] );
1321
+
1322
+ var arr2 = arr1.subarray( -arr1.length, -1 );
1323
+ // returns <Uint32Array>[ 1, 2 ]
1324
+
1325
+ var bool = ( arr1.buffer === arr2.buffer );
1326
+ // returns true
1327
+ ```
1328
+
1329
+ If the method is unable to resolve indices to a non-empty array subsequence, the method returns an empty typed array.
1330
+
1331
+ <!-- eslint-disable stdlib/require-globals -->
1332
+
1333
+ ```javascript
1334
+ var arr1 = new Uint32Array( [ 1, 2, 3 ] );
1335
+
1336
+ var arr2 = arr1.subarray( 10, -1 );
1337
+ // returns <Uint32Array>[]
1338
+ ```
1339
+
1340
+ <a name="method-to-locale-string"></a>
1341
+
1342
+ #### Uint32Array.prototype.toLocaleString( \[locales\[, options]] )
1343
+
1344
+ Serializes an array as a locale-specific `string`.
1345
+
1346
+ <!-- eslint-disable stdlib/require-globals -->
1347
+
1348
+ ```javascript
1349
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
1350
+
1351
+ var str = arr.toLocaleString();
1352
+ // returns '1,2,3'
1353
+ ```
1354
+
1355
+ <a name="method-to-string"></a>
1356
+
1357
+ #### Uint32Array.prototype.toString()
1358
+
1359
+ Serializes an array as a `string`.
1360
+
1361
+ <!-- eslint-disable stdlib/require-globals -->
1362
+
1363
+ ```javascript
1364
+ var arr = new Uint32Array( [ 1, 2, 3 ] );
1365
+
1366
+ var str = arr.toString();
1367
+ // returns '1,2,3'
1368
+ ```
1369
+
1370
+ <a name="method-values"></a>
1371
+
1372
+ #### Uint32Array.prototype.values()
1373
+
1374
+ Returns an iterator for iterating over array elements.
1375
+
1376
+ <!-- eslint-disable stdlib/require-globals -->
1377
+
1378
+ ```javascript
1379
+ var arr = new Uint32Array( [ 1, 2 ] );
1380
+
1381
+ // Create an iterator:
1382
+ var it = arr.values();
1383
+
1384
+ // Iterate over array elements...
1385
+ var v = it.next().value;
1386
+ // returns 1
1387
+
1388
+ v = it.next().value;
1389
+ // returns 2
1390
+
1391
+ var bool = it.next().done;
1392
+ // returns true
1393
+ ```
1394
+
1395
+ </section>
1396
+
1397
+ <!-- /.usage -->
1398
+
1399
+ * * *
1400
+
1401
+ <!-- Package usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
1402
+
1403
+ <section class="notes">
1404
+
1405
+ </section>
1406
+
1407
+ <!-- /.notes -->
1408
+
1409
+ <!-- Package usage examples. -->
1410
+
1411
+ <section class="examples">
1412
+
1413
+ ## Examples
1414
+
1415
+ <!-- eslint no-undef: "error" -->
1416
+
1417
+ ```javascript
1418
+ var randu = require( '@stdlib/random-base-randu' );
1419
+ var round = require( '@stdlib/math-base-special-round' );
1420
+ var ctor = require( '@stdlib/array-uint32' );
1421
+
1422
+ var arr;
1423
+ var i;
1424
+
1425
+ arr = new ctor( 10 );
1426
+ for ( i = 0; i < arr.length; i++ ) {
1427
+ arr[ i ] = round( randu()*100.0 );
1428
+ }
1429
+ console.log( arr );
1430
+ ```
1431
+
1432
+ </section>
1433
+
1434
+ <!-- /.examples -->
1435
+
1436
+ <!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
1437
+
1438
+ <section class="references">
1439
+
1440
+ </section>
1441
+
1442
+ <!-- /.references -->
1443
+
1444
+ <!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
1445
+
1446
+ <section class="related">
1447
+
1448
+ * * *
1449
+
1450
+ ## See Also
1451
+
1452
+ - <span class="package-name">[`@stdlib/array-buffer`][@stdlib/array/buffer]</span><span class="delimiter">: </span><span class="description">ArrayBuffer.</span>
1453
+ - <span class="package-name">[`@stdlib/array-float32`][@stdlib/array/float32]</span><span class="delimiter">: </span><span class="description">Float32Array.</span>
1454
+ - <span class="package-name">[`@stdlib/array-float64`][@stdlib/array/float64]</span><span class="delimiter">: </span><span class="description">Float64Array.</span>
1455
+ - <span class="package-name">[`@stdlib/array-int16`][@stdlib/array/int16]</span><span class="delimiter">: </span><span class="description">Int16Array.</span>
1456
+ - <span class="package-name">[`@stdlib/array-int32`][@stdlib/array/int32]</span><span class="delimiter">: </span><span class="description">Int32Array.</span>
1457
+ - <span class="package-name">[`@stdlib/array-int8`][@stdlib/array/int8]</span><span class="delimiter">: </span><span class="description">Int8Array.</span>
1458
+ - <span class="package-name">[`@stdlib/array-uint16`][@stdlib/array/uint16]</span><span class="delimiter">: </span><span class="description">Uint16Array.</span>
1459
+ - <span class="package-name">[`@stdlib/array-uint8`][@stdlib/array/uint8]</span><span class="delimiter">: </span><span class="description">Uint8Array.</span>
1460
+ - <span class="package-name">[`@stdlib/array-uint8c`][@stdlib/array/uint8c]</span><span class="delimiter">: </span><span class="description">Uint8ClampedArray.</span>
1461
+
1462
+ </section>
1463
+
1464
+ <!-- /.related -->
1465
+
1466
+ <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
1467
+
1468
+
1469
+ <section class="main-repo" >
1470
+
1471
+ * * *
1472
+
1473
+ ## Notice
1474
+
1475
+ This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
1476
+
1477
+ For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib].
1478
+
1479
+ #### Community
1480
+
1481
+ [![Chat][chat-image]][chat-url]
1482
+
1483
+ ---
1484
+
1485
+ ## License
1486
+
1487
+ See [LICENSE][stdlib-license].
1488
+
1489
+
1490
+ ## Copyright
1491
+
1492
+ Copyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].
1493
+
1494
+ </section>
1495
+
1496
+ <!-- /.stdlib -->
1497
+
1498
+ <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
1499
+
1500
+ <section class="links">
1501
+
1502
+ [npm-image]: http://img.shields.io/npm/v/@stdlib/array-uint32.svg
1503
+ [npm-url]: https://npmjs.org/package/@stdlib/array-uint32
1504
+
1505
+ [test-image]: https://github.com/stdlib-js/array-uint32/actions/workflows/test.yml/badge.svg?branch=v0.2.3
1506
+ [test-url]: https://github.com/stdlib-js/array-uint32/actions/workflows/test.yml?query=branch:v0.2.3
1507
+
1508
+ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/array-uint32/main.svg
1509
+ [coverage-url]: https://codecov.io/github/stdlib-js/array-uint32?branch=main
1510
+
1511
+ <!--
1512
+
1513
+ [dependencies-image]: https://img.shields.io/david/stdlib-js/array-uint32.svg
1514
+ [dependencies-url]: https://david-dm.org/stdlib-js/array-uint32/main
1515
+
1516
+ -->
1517
+
1518
+ [chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
1519
+ [chat-url]: https://stdlib.zulipchat.com
1520
+
1521
+ [stdlib]: https://github.com/stdlib-js/stdlib
1522
+
1523
+ [stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
1524
+
1525
+ [umd]: https://github.com/umdjs/umd
1526
+ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
1527
+
1528
+ [deno-url]: https://github.com/stdlib-js/array-uint32/tree/deno
1529
+ [deno-readme]: https://github.com/stdlib-js/array-uint32/blob/deno/README.md
1530
+ [umd-url]: https://github.com/stdlib-js/array-uint32/tree/umd
1531
+ [umd-readme]: https://github.com/stdlib-js/array-uint32/blob/umd/README.md
1532
+ [esm-url]: https://github.com/stdlib-js/array-uint32/tree/esm
1533
+ [esm-readme]: https://github.com/stdlib-js/array-uint32/blob/esm/README.md
1534
+ [branches-url]: https://github.com/stdlib-js/array-uint32/blob/main/branches.md
1535
+
1536
+ [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/array-uint32/main/LICENSE
1537
+
1538
+ [mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
1539
+
1540
+ <!-- <related-links> -->
1541
+
1542
+ [@stdlib/array/buffer]: https://www.npmjs.com/package/@stdlib/array-buffer
1543
+
1544
+ [@stdlib/array/float32]: https://www.npmjs.com/package/@stdlib/array-float32
1545
+
1546
+ [@stdlib/array/float64]: https://www.npmjs.com/package/@stdlib/array-float64
1547
+
1548
+ [@stdlib/array/int16]: https://www.npmjs.com/package/@stdlib/array-int16
1549
+
1550
+ [@stdlib/array/int32]: https://www.npmjs.com/package/@stdlib/array-int32
1551
+
1552
+ [@stdlib/array/int8]: https://www.npmjs.com/package/@stdlib/array-int8
1553
+
1554
+ [@stdlib/array/uint16]: https://www.npmjs.com/package/@stdlib/array-uint16
1555
+
1556
+ [@stdlib/array/uint8]: https://www.npmjs.com/package/@stdlib/array-uint8
1557
+
1558
+ [@stdlib/array/uint8c]: https://www.npmjs.com/package/@stdlib/array-uint8c
1559
+
1560
+ <!-- </related-links> -->
1561
+
1562
+ </section>
1563
+
1564
+ <!-- /.links -->