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: lib/node_modules/@stdlib/array/README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,6 +191,7 @@ Lastly, the namespace contains various other functions for dealing with arrays,
191
191
- <spanclass="signature">[`nansLike( x[, dtype] )`][@stdlib/array/nans-like]</span><spanclass="delimiter">: </span><spanclass="description">create an array filled with NaNs and having the same length and data type as a provided array.</span>
192
192
- <spanclass="signature">[`nans( length[, dtype] )`][@stdlib/array/nans]</span><spanclass="delimiter">: </span><spanclass="description">create an array filled with NaNs and having a specified length.</span>
193
193
- <spanclass="signature">[`nextDataType( [dtype] )`][@stdlib/array/next-dtype]</span><spanclass="delimiter">: </span><spanclass="description">return the next larger array data type of the same kind.</span>
194
+
- <spanclass="signature">[`nulls( length[, dtype] )`][@stdlib/array/nulls]</span><spanclass="delimiter">: </span><spanclass="description">create an array filled with nulls and having a specified length.</span>
194
195
- <spanclass="signature">[`oneToLike( x[, dtype] )`][@stdlib/array/one-to-like]</span><spanclass="delimiter">: </span><spanclass="description">generate a linearly spaced numeric array whose elements increment by `1` starting from one and having the same length and data type as a provided input array.</span>
195
196
- <spanclass="signature">[`oneTo( n[, dtype] )`][@stdlib/array/one-to]</span><spanclass="delimiter">: </span><spanclass="description">generate a linearly spaced numeric array whose elements increment by `1` starting from one.</span>
196
197
- <spanclass="signature">[`onesLike( x[, dtype] )`][@stdlib/array/ones-like]</span><spanclass="delimiter">: </span><spanclass="description">create an array filled with ones and having the same length and data type as a provided array.</span>
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/array/base/README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,7 @@ The namespace exports the following:
124
124
- <spanclass="signature">[`everyByRight( x, predicate[, thisArg] )`][@stdlib/array/base/every-by-right]</span><spanclass="delimiter">: </span><spanclass="description">test whether all elements in an array pass a test implemented by a predicate function, iterating from right to left.</span>
125
125
- <spanclass="signature">[`everyBy( x, predicate[, thisArg] )`][@stdlib/array/base/every-by]</span><spanclass="delimiter">: </span><spanclass="description">test whether all elements in an array pass a test implemented by a predicate function.</span>
126
126
- <spanclass="signature">[`every( x )`][@stdlib/array/base/every]</span><spanclass="delimiter">: </span><spanclass="description">test whether all elements in an array are truthy.</span>
127
+
- <spanclass="signature">[`falses( len )`][@stdlib/array/base/falses]</span><spanclass="delimiter">: </span><spanclass="description">create a "generic" array filled with `false` values.</span>
127
128
- <spanclass="signature">[`fancySliceAssign( x, y, s, strict )`][@stdlib/array/base/fancy-slice-assign]</span><spanclass="delimiter">: </span><spanclass="description">assign element values from a broadcasted input array to corresponding elements in an output array.</span>
128
129
- <spanclass="signature">[`fancySlice( x, s, strict )`][@stdlib/array/base/fancy-slice]</span><spanclass="delimiter">: </span><spanclass="description">return a shallow copy of a portion of an array.</span>
129
130
- <spanclass="signature">[`fillBy( x, start, end, fcn[, thisArg] )`][@stdlib/array/base/fill-by]</span><spanclass="delimiter">: </span><spanclass="description">fill all elements within a portion of an array according to a callback function.</span>
@@ -260,6 +261,7 @@ The namespace exports the following:
260
261
- <spanclass="signature">[`toDeduped( x, limit, equalNaNs )`][@stdlib/array/base/to-deduped]</span><spanclass="delimiter">: </span><spanclass="description">copy elements to a new "generic" array after removing consecutive duplicated values.</span>
261
262
- <spanclass="signature">[`toInsertedAt( x, index, value )`][@stdlib/array/base/to-inserted-at]</span><spanclass="delimiter">: </span><spanclass="description">return a new array containing every element from an input array and with a provided value inserted at a specified index.</span>
262
263
- <spanclass="signature">[`toReversed( x )`][@stdlib/array/base/to-reversed]</span><spanclass="delimiter">: </span><spanclass="description">return a new array with elements in reverse order.</span>
264
+
- <spanclass="signature">[`trues( len )`][@stdlib/array/base/trues]</span><spanclass="delimiter">: </span><spanclass="description">create a "generic" array filled with `true` values.</span>
263
265
- <spanclass="signature">[`unary2dBy( arrays, shape, fcn, clbk[, thisArg] )`][@stdlib/array/base/unary2d-by]</span><spanclass="delimiter">: </span><spanclass="description">apply a unary function to each element retrieved from a two-dimensional nested input array according to a callback function and assign results to elements in a two-dimensional nested output array.</span>
264
266
- <spanclass="signature">[`unary2d( arrays, shape, fcn )`][@stdlib/array/base/unary2d]</span><spanclass="delimiter">: </span><spanclass="description">apply a unary callback to elements in a two-dimensional nested input array and assign results to elements in a two-dimensional nested output array.</span>
265
267
- <spanclass="signature">[`unary3dBy( arrays, shape, fcn, clbk[, thisArg] )`][@stdlib/array/base/unary3d-by]</span><spanclass="delimiter">: </span><spanclass="description">apply a unary function to each element retrieved from a three-dimensional nested input array according to a callback function and assign results to elements in a three-dimensional nested output array.</span>
* Returns a "generic" array filled with `false` values.
2412
+
*
2413
+
* @param len - array length
2414
+
* @returns output array
2415
+
*
2416
+
* @example
2417
+
* var out = ns.falses( 3 );
2418
+
* // returns [ false, false, false ]
2419
+
*/
2420
+
falses: typeoffalses;
2421
+
2408
2422
/**
2409
2423
* Returns a shallow copy of a portion of an array.
2410
2424
*
@@ -5713,6 +5727,18 @@ interface Namespace {
5713
5727
*/
5714
5728
toReversed: typeoftoReversed;
5715
5729
5730
+
/**
5731
+
* Returns a "generic" array filled with `true` values.
5732
+
*
5733
+
* @param len - array length
5734
+
* @returns output array
5735
+
*
5736
+
* @example
5737
+
* var out = ns.trues( 3 );
5738
+
* // returns [ true, true, true ]
5739
+
*/
5740
+
trues: typeoftrues;
5741
+
5716
5742
/**
5717
5743
* Applies a unary callback to elements in a two-dimensional nested input array and assigns results to elements in a two-dimensional nested output array.
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
+
# falses
22
+
23
+
> Create a "generic" array filled with `false` values.
24
+
25
+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
26
+
27
+
<sectionclass="intro">
28
+
29
+
</section>
30
+
31
+
<!-- /.intro -->
32
+
33
+
<!-- Package usage documentation. -->
34
+
35
+
<sectionclass="usage">
36
+
37
+
## Usage
38
+
39
+
```javascript
40
+
var falses =require( '@stdlib/array/base/falses' );
41
+
```
42
+
43
+
#### falses( len )
44
+
45
+
Returns a "generic" array filled with `false` values.
46
+
47
+
```javascript
48
+
var out =falses( 3 );
49
+
// returns [ false, false, false ]
50
+
```
51
+
52
+
</section>
53
+
54
+
<!-- /.usage -->
55
+
56
+
<!-- Package usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
57
+
58
+
<sectionclass="notes">
59
+
60
+
</section>
61
+
62
+
<!-- /.notes -->
63
+
64
+
<!-- Package usage examples. -->
65
+
66
+
<sectionclass="examples">
67
+
68
+
## Examples
69
+
70
+
<!-- eslint no-undef: "error" -->
71
+
72
+
```javascript
73
+
var falses =require( '@stdlib/array/base/falses' );
<!-- 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. -->
87
+
88
+
<sectionclass="references">
89
+
90
+
</section>
91
+
92
+
<!-- /.references -->
93
+
94
+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
95
+
96
+
<sectionclass="related">
97
+
98
+
</section>
99
+
100
+
<!-- /.related -->
101
+
102
+
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
0 commit comments