Skip to content

Commit ec23d8f

Browse files
committed
Auto-generated commit
1 parent efe6439 commit ec23d8f

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

CONTRIBUTORS

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Justin Dennison <justin1dennison@gmail.com>
1616
Marcus <mfantham@users.noreply.github.com>
1717
Matt Cochrane <matthew.cochrane.eng@gmail.com>
1818
Milan Raj <rajsite@users.noreply.github.com>
19+
Momtchil Momtchev <momtchil@momtchev.com>
1920
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
2021
Philipp Burckhardt <pburckhardt@outlook.com>
2122
Ricky Reusser <rsreusser@gmail.com>

README.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,15 @@ bool = isBetweenArray( arr, 3, 5, 'closed', 'open' );
136136
137137
```javascript
138138
var randu = require( '@stdlib/random-base-randu' );
139-
var Float64Array = require( '@stdlib/array-float64' );
139+
var filledarrayBy = require( '@stdlib/array-filled-by' );
140140
var isBetweenArray = require( '@stdlib/assert-is-between-array' );
141141
142-
var x;
143-
var i;
142+
// Create an array of random numbers:
143+
var x = filledarrayBy( 100, 'float64', randu );
144144
145-
x = new Float64Array( 100 );
146-
for ( i = 0; i < x.length; i++ ) {
147-
x[ i ] = randu();
148-
}
149-
console.log( isBetweenArray( x, 0.01, 0.99 ) );
145+
// Check whether every element resides within the interval [0.01, 0.99]:
146+
var bool = isBetweenArray( x, 0.01, 0.99 );
147+
console.log( bool );
150148
```
151149

152150
</section>

examples/index.js

+6-8
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@
1919
'use strict';
2020

2121
var randu = require( '@stdlib/random-base-randu' );
22-
var Float64Array = require( '@stdlib/array-float64' );
22+
var filledarrayBy = require( '@stdlib/array-filled-by' );
2323
var isBetweenArray = require( './../lib' );
2424

25-
var x;
26-
var i;
25+
// Create an array of random numbers:
26+
var x = filledarrayBy( 100, 'float64', randu );
2727

28-
x = new Float64Array( 100 );
29-
for ( i = 0; i < x.length; i++ ) {
30-
x[ i ] = randu();
31-
}
32-
console.log( isBetweenArray( x, 0.01, 0.99 ) );
28+
// Check whether every element resides within the interval [0.01, 0.99]:
29+
var bool = isBetweenArray( x, 0.01, 0.99 );
30+
console.log( bool );

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"@stdlib/assert-is-collection": "^0.0.x"
4141
},
4242
"devDependencies": {
43+
"@stdlib/array-filled-by": "^0.0.x",
4344
"@stdlib/array-float64": "^0.0.x",
4445
"@stdlib/array-int16": "^0.0.x",
4546
"@stdlib/array-int32": "^0.0.x",

0 commit comments

Comments
 (0)