Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
c733a4a
fix: make CLI scripts executable
stdlib-bot Nov 16, 2025
a2541c8
feat: update error databases
stdlib-bot Nov 16, 2025
fb4a0c2
chore: add `alias_prefix` to parent namespaces
gunjjoshi Nov 16, 2025
97e3efa
feat: add `primary_dtype` for functions in `unary_function_database`
gunjjoshi Nov 16, 2025
221cdae
docs: update namespace table of contents
stdlib-bot Nov 16, 2025
a818370
docs: update related packages sections
stdlib-bot Nov 16, 2025
e3f577b
chore: fix JavaScript lint errors
kaushal-kumar-it Nov 16, 2025
bcb5dd3
feat: add `stats/base/ndarray/dnanminabs`
iampratik13 Nov 16, 2025
fe84996
feat: update math scaffold databases
stdlib-bot Nov 16, 2025
b24f209
feat: add `stats/base/ndarray/dnanmaxabs`
iampratik13 Nov 16, 2025
a5fe11c
test: fix ndarray buffers
kgryte Nov 17, 2025
aed0c08
fix: remove extra dtype array
kgryte Nov 17, 2025
ffac6a9
feat: add `blas/ext/linspace`
kgryte Nov 17, 2025
7bdd518
feat: add `linspace` to namespace
kgryte Nov 17, 2025
69ddae2
docs: use double quotes
kgryte Nov 17, 2025
4f4439c
docs: update copy
kgryte Nov 17, 2025
639d004
docs: fix descriptions
kgryte Nov 17, 2025
4ec58d4
docs: update namespace table of contents
stdlib-bot Nov 18, 2025
8d8dff9
docs: add missing space
Planeshifter Nov 13, 2025
58de408
docs: remove duplicated example
Planeshifter Nov 18, 2025
871c5e1
docs: fix return annotations in TSDoc examples
Planeshifter Nov 18, 2025
5033288
feat: add `string/base/concat`
sagar7162 Nov 18, 2025
c75d89b
feat: add `stats/incr/nanmcv`
sagar7162 Nov 18, 2025
961f4ce
feat: add `number/float64/base/to-float16`
gururaj1512 Nov 18, 2025
03d6337
chore: fix malformed HTML `alt` attributes in README files
Planeshifter Nov 18, 2025
3c798b6
docs: fix TSDoc example annotations and remove unwanted parenthesis
Planeshifter Nov 18, 2025
3c19c6e
docs: fix TSDoc example code return annotations
Planeshifter Nov 18, 2025
839861e
feat: add `symbol/replace`
kgryte Nov 18, 2025
dbdc519
feat: add `ReplaceSymbol` to namespace
kgryte Nov 18, 2025
53dcd07
feat: add `ToPrimitiveSymbol` to namespace
kgryte Nov 18, 2025
6658cec
feat: add `stats/base/ndarray/nanmaxabs`
iampratik13 Nov 18, 2025
4e3efb3
docs: fix type
kgryte Nov 18, 2025
0df8385
feat: add `stats/base/ndarray/nanminabs`
iampratik13 Nov 18, 2025
8b923e8
fix: ensure correct `this` context when creating a new Module instance
kgryte Nov 19, 2025
36ed318
fix: ensure correct `this` context when creating a new Module instance
kgryte Nov 19, 2025
5d7077c
fix: ensure correct `this` context when creating a new Module instance
kgryte Nov 19, 2025
5c65ba1
fix: ensure correct `this` context when creating a new Module instance
kgryte Nov 19, 2025
45157c1
docs: update namespace table of contents
stdlib-bot Nov 19, 2025
50c3682
feat: add `stats/strided/wasm/dmeanpw`
0PrashantYadav0 Nov 19, 2025
0b69c69
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
13e3747
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
8277c04
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
10e9ace
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
6ee67e7
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
60b240b
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
e9f2171
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
5647b7b
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
ee26f0a
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
cd5bf49
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
4b6a0c6
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
3d9414b
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
3c7d450
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
b4844c5
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
598e2d0
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
f20fe59
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
a48cc1d
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
c6c6ce9
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
20bb04f
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
7579226
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
5eed9cf
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
03c5421
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
3b91ea0
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
8e68d9b
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
09d890d
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
d9f2472
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
32e4410
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
9948d29
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
dd2a43d
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
c92f9d5
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
cb26f90
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
dc30ba7
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
50fea90
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
415a884
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
daf34a6
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
0cd5d3f
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
b0c5a24
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
ac2c588
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
b1385dc
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
e0ae678
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
c35d846
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
fd280ce
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
12c4163
fix: ensure correct `this` context when creating a new Module instance
Planeshifter Nov 19, 2025
b2a8ea5
style: remove extraneous empty line
Planeshifter Nov 19, 2025
e8f9f87
docs: fix equations
kgryte Nov 19, 2025
1507be5
feat: add `stats/base/ndarray/scuminabs`
iampratik13 Nov 20, 2025
694ce85
feat: add `stats/base/ndarray/scumaxabs`
iampratik13 Nov 20, 2025
58d771c
feat: add `blas/ext/base/drrss`
nakul-krishnakumar Nov 20, 2025
dc70634
style: remove space
kgryte Nov 21, 2025
247f82f
feat: add `ndarray/some`
headlessNode Nov 21, 2025
85572f0
test: add tests to `ndarray/base/count-if`
headlessNode Nov 21, 2025
8063ac4
test: fix underlying buffer type
kgryte Nov 21, 2025
67ffef5
test: add tests to `ndarray/base/count-falsy`
headlessNode Nov 21, 2025
5be0df6
test: add tests to `ndarray/base/count-truthy`
headlessNode Nov 21, 2025
266ce6f
docs: fix example code and return annotations in TSDoc examples
Planeshifter Nov 21, 2025
5042de2
docs: fix example code in TSDoc comments
Planeshifter Nov 21, 2025
67d1164
docs: fix return values in TSDoc return annotation comments
Planeshifter Nov 21, 2025
b9cb254
docs: fix return values in TSDoc return annotation comments
Planeshifter Nov 21, 2025
0fe98fc
docs: fix copy & paste error
Planeshifter Nov 21, 2025
b43dd22
docs: rename class to match public symbol
Planeshifter Nov 21, 2025
c50d2b4
docs: fix return values in TSDoc return annotation comments
Planeshifter Nov 21, 2025
f23c626
feat: update error databases
stdlib-bot Nov 23, 2025
8b4c2ef
feat: add `stats/base/ndarray/dcuminabs`
iampratik13 Nov 24, 2025
2c17bdf
feat: add `stats/base/ndarray/dcumaxabs`
iampratik13 Nov 24, 2025
a62e8f4
feat: add `stats/base/ndarray/nanmeanpn`
iampratik13 Nov 24, 2025
0643fe0
feat: add `stats/base/ndarray/dnanmeanpn`
Sachinn-64 Nov 24, 2025
337ff3e
docs: fix TSDoc comments example code and return annotation values
Planeshifter Nov 21, 2025
5b557c6
docs: fix TSDoc comments example code and return annotation values
Planeshifter Nov 22, 2025
65c7aef
build: support specifying alias via custom comment
Planeshifter Nov 24, 2025
b41dcf4
docs: fix code in TSDoc examples
Planeshifter Nov 25, 2025
1e1b410
docs: address TSDoc lint errors and add doctest aliases
Planeshifter Nov 25, 2025
7e7d5e5
feat : add
MeKaustubh07 Nov 26, 2025
070c5ca
feat : add stats/base/ndarray/smeankbn2
MeKaustubh07 Nov 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ declare function add( x: number, y: number ): number;
- The rule skips validation if the `package.json` file cannot be found or if the resolved implementation cannot be loaded.
- Examples are executed in a sandboxed VM context with limited globals for security.
- This rule is specifically designed for TypeScript declaration files and will only process files with a `*.d.ts` filename extension.
- You can specify a custom alias for the package export in the doctest scope using a comment in the format `// eslint-doctest-alias: <alias>`. This is useful when the TypeScript declaration uses a type name that differs from the exported identifier, or when you want to use a specific identifier in examples for clarity.

</section>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ var RE_DECLARE_CONST = /declare\s+const\s+([a-zA-Z_$][a-zA-Z0-9_$]*)\s*:/;
// Regular expression to match variable declarations with interface types such as "declare var ctor: Int32Vector;" (captures variable name and interface name):
var RE_DECLARE_VAR_INTERFACE = /declare\s+(?:var|const)\s+([a-zA-Z_$][a-zA-Z0-9_$]*)\s*:\s*([A-Z][a-zA-Z0-9_$]*)/;

// Regular expression to match custom alias comment "// eslint-doctest-alias: <alias>" capturing alias name:
var RE_ALIAS_COMMENT = /\/\/\s*eslint-doctest-alias:\s*([a-zA-Z_$][a-zA-Z0-9_$]*)/;


// MAIN //

Expand All @@ -49,9 +52,16 @@ var RE_DECLARE_VAR_INTERFACE = /declare\s+(?:var|const)\s+([a-zA-Z_$][a-zA-Z0-9_
function addPackageToScope( scope, pkg, sourceText ) {
var interfaceMatch;
var namespaceMatch;
var aliasMatch;
var pkgType;
var match;

// Check for custom alias comment first...
aliasMatch = sourceText.match( RE_ALIAS_COMMENT );
if ( aliasMatch ) {
scope[ aliasMatch[1] ] = pkg;
}

pkgType = typeof pkg;
if ( pkgType === 'function' ) {
match = sourceText.match( RE_DECLARE_FUNCTION ) || sourceText.match( RE_DECLARE_VAR ) || sourceText.match( RE_DECLARE_CLASS ); // eslint-disable-line max-len
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "@stdlib/array/index",
"version": "0.0.0",
"description": "Create an array index.",
"license": "Apache-2.0",
"author": {
"name": "The Stdlib Authors",
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
},
"contributors": [
{
"name": "The Stdlib Authors",
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
}
],
"main": "./lib",
"directories": {
"doc": "./docs",
"example": "./examples",
"lib": "./lib",
"test": "./test"
},
"types": "./docs/types",
"scripts": {},
"homepage": "https://github.com/stdlib-js/stdlib",
"repository": {
"type": "git",
"url": "git://github.com/stdlib-js/stdlib.git"
},
"bugs": {
"url": "https://github.com/stdlib-js/stdlib/issues"
},
"dependencies": {},
"devDependencies": {},
"engines": {
"node": ">=0.10.0",
"npm": ">2.7.0"
},
"keywords": [
"stdlib",
"array",
"index",
"indexing"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* @license Apache-2.0
*
* Copyright (c) 2025 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

'use strict';

/* eslint-disable stdlib/jsdoc-main-export */

// MODULES //

var ArrayIndex = require( '@stdlib/array/index' );


// EXPORTS //

module.exports = ArrayIndex;
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,34 @@ test = {
};
valid.push( test );

test = {
'code': [
'// eslint-doctest-alias: ArrayIndex',
'',
'/**',
'* Array index constructor.',
'*',
'* @param x - input array',
'* @returns ArrayIndex instance',
'*',
'* @example',
'* var x = [ 1, 2, 3, 4 ];',
'*',
'* var idx = new ArrayIndex( x );',
'* // returns <ArrayIndex>',
'*/',
'interface Constructor {',
' new( x: Array<number> ): any;',
'}',
'',
'declare var ctor: Constructor;',
'',
'export = ctor;'
].join( '\n' ),
'filename': join( __dirname, 'packages/@stdlib/array/index/docs/types/index.d.ts' )
};
valid.push( test );


// EXPORTS //

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ interface CuanyByRight {
* var y = [ false, null, false, null, false, null, false, null, false, null ];
*
* var arr = cuanyByRight.assign( x, y, 2, 0, isPositive );
* // returns [ false, null, false, null, false, null, true, null, true, null ]
* // returns [ false, null, ..., true, null ]
*/
assign<T = unknown, U = unknown, V = unknown>( x: Collection<T> | AccessorArrayLike<T>, out: Collection<U> | AccessorArrayLike<U>, stride: number, offset: number, predicate: Predicate<T, V>, thisArg?: ThisParameterType<Predicate<T, V>> ): Collection<U | boolean> | AccessorArrayLike<U | boolean>;
}
Expand Down Expand Up @@ -187,7 +187,7 @@ interface CuanyByRight {
* var y = [ false, null, false, null, false, null, false, null, false, null ];
*
* var arr = cuanyByRight.assign( x, y, 2, 0, isPositive );
* // returns [ false, null, false, null, false, null, true, null, true, null ]
* // returns [ false, null, ..., true, null ]
*/
declare var cuanyByRight: CuanyByRight;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,16 @@ declare function resolveSetter( x: Float32Array ): SetFloat32;
* var resolveGetter = require( '@stdlib/array/base/resolve-getter' );
* var Complex128Array = require( '@stdlib/array/complex128' );
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
* var real = require( '@stdlib/array/real' );
* var imag = require( '@stdlib/array/imag' );
* var real = require( '@stdlib/complex/float64/real' );
* var imag = require( '@stdlib/complex/float64/imag' );
*
* var arr = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0 ] );
*
* var set = resolveSetter( arr );
* set( arr, 1, new Complex128( 10.0, 11.0 ) );
*
* var get = resolveGetter( arr );
* var v = get( arr, 2 );
* var v = get( arr, 1 );
* // returns <Complex128>
*
* var re = real( v );
Expand All @@ -231,16 +231,16 @@ declare function resolveSetter( x: Complex128Array ): SetComplex128;
* var resolveGetter = require( '@stdlib/array/base/resolve-getter' );
* var Complex64Array = require( '@stdlib/array/complex64' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/array/realf' );
* var imagf = require( '@stdlib/array/imagf' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* var arr = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
*
* var set = resolveSetter( arr );
* set( arr, 1, new Complex64( 10.0, 11.0 ) );
*
* var get = resolveGetter( arr );
* var v = get( arr, 2 );
* var v = get( arr, 1 );
* // returns <Complex64>
*
* var re = realf( v );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ type Unary<U, V> = ( value: U ) => V;
* var x = ones4d( shape );
* var y = zeros4d( shape );
*
* unary4dBy( [ x, y ], shape, scale );
* unary4dBy( [ x, y ], shape, scale, accessor );
*
* console.log( y );
* // => [ [ [ [ -10.0, -10.0 ], [ -10.0, -10.0 ] ] ] ]
Expand Down
15 changes: 7 additions & 8 deletions lib/node_modules/@stdlib/array/complex64/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ declare class Complex64Array implements Complex64ArrayInterface {
* arr.set( [ 1.0, -1.0 ], 0 );
* arr.set( [ 9.0, -9.0 ], 9 );
*
* z = arr.get( -1 )
* // return <Complex64>
* z = arr.at( -1 );
* // returns <Complex64>
*
* z = arr.at( 100 );
* // returns undefined
Expand Down Expand Up @@ -732,9 +732,6 @@ declare class Complex64Array implements Complex64ArrayInterface {
* arr.set( [ 3.0, 3.0 ], 2 );
*
* arr.forEach( log );
* // => 0: 1 + 1i
* // => 1: 2 + 2i
* // => 2: 3 + 3i
*/
forEach<U = unknown>( fcn: Callback<U>, thisArg?: ThisParameterType<Callback<U>> ): void;

Expand Down Expand Up @@ -801,13 +798,13 @@ declare class Complex64Array implements Complex64ArrayInterface {
* arr.set( [ 2.0, 2.0 ], 3 );
* arr.set( [ 5.0, 5.0 ], 4 );
*
* var idx = arr.indexOf( new Complex64( [ 2.0, 2.0 ] ) );
* var idx = arr.indexOf( new Complex64( 2.0, 2.0 ) );
* // returns 1
*
* idx = arr.indexOf( new Complex64( [ 2.0, 2.0 ] ), 2 );
* idx = arr.indexOf( new Complex64( 2.0, 2.0 ), 2 );
* // returns 3
*
* idx = arr.indexOf( new Complex64( [ 2.0, 2.0 ] ), -3 );
* idx = arr.indexOf( new Complex64( 2.0, 2.0 ), -3 );
* // returns 3
*/
indexOf( searchElement: ComplexLike, fromIndex?: number ): number;
Expand Down Expand Up @@ -1843,3 +1840,5 @@ declare var ctor: Complex64ArrayConstructor;
// EXPORTS //

export = ctor;

// eslint-doctest-alias: Complex64Array
30 changes: 15 additions & 15 deletions lib/node_modules/@stdlib/array/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,21 +357,21 @@ interface Namespace {
*
* @example
* var arr = new ns.Complex128Array();
* // returns <ns.Complex128Array>
* // returns <Complex128Array>
*
* var len = arr.length;
* // returns 0
*
* @example
* var arr = new ns.Complex128Array( 2 );
* // returns <ns.Complex128Array>
* // returns <Complex128Array>
*
* var len = arr.length;
* // returns 2
*
* @example
* var arr = new ns.Complex128Array( [ 1.0, -1.0 ] );
* // returns <ns.Complex128Array>
* // returns <Complex128Array>
*
* var len = arr.length;
* // returns 1
Expand All @@ -381,27 +381,27 @@ interface Namespace {
*
* var buf = new ArrayBuffer( 16 );
* var arr = new ns.Complex128Array( buf );
* // returns <ns.Complex128Array>
* // returns <Complex128Array>
*
* var len = arr.length;
* // returns 2
* // returns 1
*
* @example
* var ArrayBuffer = require( '@stdlib/array/buffer' );
*
* var buf = new ArrayBuffer( 16 );
* var arr = new ns.Complex128Array( buf, 8 );
* // returns <ns.Complex128Array>
* var buf = new ArrayBuffer( 32 );
* var arr = new ns.Complex128Array( buf, 16 );
* // returns <Complex128Array>
*
* var len = arr.length;
* // returns 1
*
* @example
* var ArrayBuffer = require( '@stdlib/array/buffer' );
*
* var buf = new ArrayBuffer( 32 );
* var arr = new ns.Complex128Array( buf, 8, 2 );
* // returns <ns.Complex128Array>
* var buf = new ArrayBuffer( 48 );
* var arr = new ns.Complex128Array( buf, 16, 2 );
* // returns <Complex128Array>
*
* var len = arr.length;
* // returns 2
Expand Down Expand Up @@ -668,7 +668,7 @@ interface Namespace {
*
* var out = new Float64Array( 10 );
* var arr = ns.iterator2array( iter, out, scale );
* // returns <Array>
* // returns <Float64Array>
*/
iterator2array: typeof iterator2array;

Expand Down Expand Up @@ -1287,19 +1287,19 @@ interface Namespace {
* @example
* var arr = [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ];
*
* var ns.shape = ns.shape( arr );
* var sh = ns.shape( arr );
* // returns [ 3, 3 ]
*
* @example
* var arr = [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8 ] ];
*
* var ns.shape = ns.shape( arr );
* var sh = ns.shape( arr );
* // returns [ 3 ]
*
* @example
* var arr = [ [ 1, 2, 3 ], [ 4, 5, 6 ], null ];
*
* var ns.shape = ns.shape( arr );
* var sh = ns.shape( arr );
* // returns [ 3 ]
*/
shape: typeof shape;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ declare function iterator2array<T = unknown, U = unknown, W = unknown>( iterator
*
* var out = new Float64Array( 10 );
* var arr = iterator2array( iter, out );
* // returns <Array>
* // returns <Float64Array>
*/
declare function iterator2array<T = unknown, U = unknown>( iterator: Iterator<T>, out: Collection<U> ): Collection<T | U>;

Expand All @@ -145,7 +145,7 @@ declare function iterator2array<T = unknown, U = unknown>( iterator: Iterator<T>
*
* var out = new Float64Array( 10 );
* var arr = iterator2array( iter, out, scale );
* // returns <Array>
* // returns <Float64Array>
*/
declare function iterator2array<T = unknown, U = unknown, V = unknown, W = unknown>( iterator: Iterator<T>, out: Collection<V>, mapFcn: MapFunction<T, U, W>, thisArg?: ThisParameterType<MapFunction<T, U, W>> ): Collection<U | V>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ declare function scalar2array( value: number, dtype: 'uint8' ): Uint8Array;
*
* @example
* var x = scalar2array( 1, 'uint8c' );
* // returns <Uint8ClampedArray>[]
* // returns <Uint8ClampedArray>[ 1 ]
*/
declare function scalar2array( value: number, dtype: 'uint8c' ): Uint8ClampedArray;

Expand Down
2 changes: 2 additions & 0 deletions lib/node_modules/@stdlib/array/index/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,3 +323,5 @@ declare var ctor: Constructor;
// EXPORTS //

export = ctor;

// eslint-doctest-alias: ArrayIndex
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* // returns false
*
* bool = isConstantcase( '' );
* // returns false
* // returns true
*
* bool = isConstantcase( null );
* // returns false
Expand Down
Loading
Loading