Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jun 28, 2023
1 parent c6d3baa commit 306e951
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
22 changes: 11 additions & 11 deletions docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ interface IsNaNArray {
* @returns boolean indicating whether value is an array-like object containing only NaN values
*
* @example
* var bool = isNaNArray( [NaN,NaN,NaN] );
* var bool = isNaNArray( [ NaN, NaN, NaN ] );
* // returns true
*
* @example
* var bool = isNaNArray( [NaN,2] );
* var bool = isNaNArray( [ NaN, 2 ] );
* // returns false
*/
( value: any ): value is ArrayLike<number | Number>;
Expand All @@ -45,11 +45,11 @@ interface IsNaNArray {
* @returns boolean indicating whether value is an array-like object containing only primitive NaN values
*
* @example
* var bool = isNaNArray.primitives( [NaN,new Number( NaN )] );
* var bool = isNaNArray.primitives( [ NaN, new Number( NaN ) ] );
* // returns false
*
* @example
* var bool = isNaNArray.primitives( [NaN,NaN,NaN] );
* var bool = isNaNArray.primitives( [ NaN, NaN, NaN ] );
* // returns true
*/
primitives( value: any ): value is ArrayLike<number>;
Expand All @@ -61,15 +61,15 @@ interface IsNaNArray {
* @returns boolean indicating whether value is an array-like object containing only number objects having NaN values
*
* @example
* var bool = isNaNArray.objects( [new Number( NaN ),new Number( NaN )] );
* var bool = isNaNArray.objects( [ new Number( NaN ), new Number( NaN ) ] );
* // returns true
*
* @example
* var bool = isNaNArray.objects( [NaN,new Number( NaN ),new Number( NaN )] );
* var bool = isNaNArray.objects( [ NaN, new Number( NaN ), new Number( NaN ) ] );
* // returns false
*
* @example
* var bool = isNaNArray.objects( [NaN,NaN,NaN] );
* var bool = isNaNArray.objects( [ NaN, NaN, NaN ] );
*/
objects( value: any ): value is ArrayLike<Number>;
}
Expand All @@ -81,19 +81,19 @@ interface IsNaNArray {
* @returns boolean indicating whether value is an array-like object containing only NaN values
*
* @example
* var bool = isNaNArray( [NaN,NaN,NaN] );
* var bool = isNaNArray( [ NaN, NaN, NaN ] );
* // returns true
*
* @example
* var bool = isNaNArray( [NaN,2] );
* var bool = isNaNArray( [ NaN, 2 ] );
* // returns false
*
* @example
* var bool = isNaNArray.primitives( [NaN,NaN,NaN] );
* var bool = isNaNArray.primitives( [ NaN, NaN, NaN ] );
* // returns true
*
* @example
* var bool = isNaNArray.objects( [new Number( NaN ),new Number( NaN )] );
* var bool = isNaNArray.objects( [ new Number( NaN ), new Number( NaN ) ] );
* // returns true
*/
declare var isNumberArray: IsNaNArray;
Expand Down
14 changes: 7 additions & 7 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@
* @example
* var isNaNArray = require( '@stdlib/assert-is-nan-array' );
*
* var bool = isNaNArray( [NaN,NaN,NaN] );
* var bool = isNaNArray( [ NaN, NaN, NaN ] );
* // returns true
*
* bool = isNaNArray( [NaN,2] );
* bool = isNaNArray( [ NaN, 2 ] );
* // returns false
*
* bool = isNaNArray.primitives( [NaN,new Number( NaN )] );
* bool = isNaNArray.primitives( [ NaN, new Number( NaN ) ] );
* // returns false
*
* bool = isNaNArray.primitives( [NaN,NaN,NaN] );
* bool = isNaNArray.primitives( [ NaN, NaN, NaN ] );
* // returns true
*
* bool = isNaNArray.objects( [new Number( NaN ),new Number( NaN )] );
* bool = isNaNArray.objects( [ new Number( NaN ), new Number( NaN ) ] );
* // returns true
*
* bool = isNaNArray.objects( [NaN,new Number( NaN ),new Number( NaN )] );
* bool = isNaNArray.objects( [ NaN, new Number( NaN ), new Number( NaN ) ] );
* // returns false
*
* bool = isNaNArray.objects( [NaN,NaN,NaN] );
* bool = isNaNArray.objects( [ NaN, NaN, NaN ] );
* // returns false
*/

Expand Down

0 comments on commit 306e951

Please sign in to comment.