Skip to content

Commit 831de1b

Browse files
committed
feat: add map and filter to namespace
1 parent d481f26 commit 831de1b

File tree

1 file changed

+18
-0
lines changed
  • lib/node_modules/@stdlib/ndarray/lib

1 file changed

+18
-0
lines changed

lib/node_modules/@stdlib/ndarray/lib/index.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,15 @@ setReadOnly( ns, 'emptyLike', require( '@stdlib/ndarray/empty-like' ) );
171171
*/
172172
setReadOnly( ns, 'FancyArray', require( '@stdlib/ndarray/fancy' ) );
173173

174+
/**
175+
* @name filter
176+
* @memberof ns
177+
* @readonly
178+
* @type {Function}
179+
* @see {@link module:@stdlib/ndarray/filter}
180+
*/
181+
setReadOnly( ns, 'filter', require( '@stdlib/ndarray/filter' ) );
182+
174183
/**
175184
* @name flag
176185
* @memberof ns
@@ -225,6 +234,15 @@ setReadOnly( ns, 'indexModes', require( '@stdlib/ndarray/index-modes' ) );
225234
*/
226235
setReadOnly( ns, 'iter', require( '@stdlib/ndarray/iter' ) );
227236

237+
/**
238+
* @name map
239+
* @memberof ns
240+
* @readonly
241+
* @type {Function}
242+
* @see {@link module:@stdlib/ndarray/map}
243+
*/
244+
setReadOnly( ns, 'map', require( '@stdlib/ndarray/map' ) );
245+
228246
/**
229247
* @name maybeBroadcastArray
230248
* @memberof ns

0 commit comments

Comments
 (0)