@stdlib/array-base-filter 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +1 -1
- package/README.md +5 -5
- package/docs/types/index.d.ts +9 -4
- package/package.json +2 -2
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2026 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -196,7 +196,7 @@ See [LICENSE][stdlib-license].
|
|
|
196
196
|
|
|
197
197
|
## Copyright
|
|
198
198
|
|
|
199
|
-
Copyright © 2016-
|
|
199
|
+
Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
|
|
200
200
|
|
|
201
201
|
</section>
|
|
202
202
|
|
|
@@ -209,8 +209,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
209
209
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/array-base-filter.svg
|
|
210
210
|
[npm-url]: https://npmjs.org/package/@stdlib/array-base-filter
|
|
211
211
|
|
|
212
|
-
[test-image]: https://github.com/stdlib-js/array-base-filter/actions/workflows/test.yml/badge.svg?branch=v0.2.
|
|
213
|
-
[test-url]: https://github.com/stdlib-js/array-base-filter/actions/workflows/test.yml?query=branch:v0.2.
|
|
212
|
+
[test-image]: https://github.com/stdlib-js/array-base-filter/actions/workflows/test.yml/badge.svg?branch=v0.2.3
|
|
213
|
+
[test-url]: https://github.com/stdlib-js/array-base-filter/actions/workflows/test.yml?query=branch:v0.2.3
|
|
214
214
|
|
|
215
215
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/array-base-filter/main.svg
|
|
216
216
|
[coverage-url]: https://codecov.io/github/stdlib-js/array-base-filter?branch=main
|
|
@@ -222,8 +222,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
222
222
|
|
|
223
223
|
-->
|
|
224
224
|
|
|
225
|
-
[chat-image]: https://img.shields.io/
|
|
226
|
-
[chat-url]: https://
|
|
225
|
+
[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
|
|
226
|
+
[chat-url]: https://stdlib.zulipchat.com
|
|
227
227
|
|
|
228
228
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
229
229
|
|
package/docs/types/index.d.ts
CHANGED
|
@@ -247,8 +247,8 @@ declare function filter<T = unknown, U = unknown>( x: Uint8ClampedArray, predica
|
|
|
247
247
|
*
|
|
248
248
|
* @example
|
|
249
249
|
* var isPositiveNumber = require( '@stdlib/assert-is-positive-number' ).isPrimitive;
|
|
250
|
-
* var real = require( '@stdlib/complex-real' );
|
|
251
|
-
* var imag = require( '@stdlib/complex-imag' );
|
|
250
|
+
* var real = require( '@stdlib/complex-float64-real' );
|
|
251
|
+
* var imag = require( '@stdlib/complex-float64-imag' );
|
|
252
252
|
* var Complex128Array = require( '@stdlib/array-complex128' );
|
|
253
253
|
*
|
|
254
254
|
* function predicate( v ) {
|
|
@@ -272,8 +272,8 @@ declare function filter<T = unknown, U = unknown>( x: Complex128Array, predicate
|
|
|
272
272
|
*
|
|
273
273
|
* @example
|
|
274
274
|
* var isPositiveNumber = require( '@stdlib/assert-is-positive-number' ).isPrimitive;
|
|
275
|
-
* var realf = require( '@stdlib/complex-
|
|
276
|
-
* var imagf = require( '@stdlib/complex-
|
|
275
|
+
* var realf = require( '@stdlib/complex-float32-real' );
|
|
276
|
+
* var imagf = require( '@stdlib/complex-float32-imag' );
|
|
277
277
|
* var Complex64Array = require( '@stdlib/array-complex64' );
|
|
278
278
|
*
|
|
279
279
|
* function predicate( v ) {
|
|
@@ -296,6 +296,8 @@ declare function filter<T = unknown, U = unknown>( x: Complex64Array, predicate:
|
|
|
296
296
|
* @returns output array
|
|
297
297
|
*
|
|
298
298
|
* @example
|
|
299
|
+
* var isPositiveNumber = require( '@stdlib/assert-is-positive-number' ).isPrimitive;
|
|
300
|
+
*
|
|
299
301
|
* var x = [ 1, -2, -3, 4 ];
|
|
300
302
|
*
|
|
301
303
|
* var out = filter( x, isPositiveNumber );
|
|
@@ -312,6 +314,7 @@ declare function filter<T = unknown, U = unknown>( x: Array<T>, predicate: Predi
|
|
|
312
314
|
* @returns output array
|
|
313
315
|
*
|
|
314
316
|
* @example
|
|
317
|
+
* var isPositiveNumber = require( '@stdlib/assert-is-positive-number' ).isPrimitive;
|
|
315
318
|
* var toAccessorArray = require( '@stdlib/array-base-to-accessor-array' );
|
|
316
319
|
*
|
|
317
320
|
* var x = toAccessorArray( [ 1, -2, -3, 4 ] );
|
|
@@ -330,6 +333,8 @@ declare function filter<T = unknown, U = unknown>( x: AccessorArrayLike<T>, pred
|
|
|
330
333
|
* @returns output array
|
|
331
334
|
*
|
|
332
335
|
* @example
|
|
336
|
+
* var isPositiveNumber = require( '@stdlib/assert-is-positive-number' ).isPrimitive;
|
|
337
|
+
*
|
|
333
338
|
* var x = [ 1, -2, -3, 4 ];
|
|
334
339
|
*
|
|
335
340
|
* var out = filter( x, isPositiveNumber );
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/array-base-filter",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Return a shallow copy of an array containing only those elements which pass a test implemented by a predicate function.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@stdlib/array-base-arraylike2object": "^0.2.
|
|
33
|
+
"@stdlib/array-base-arraylike2object": "^0.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {},
|
|
36
36
|
"engines": {
|