@stdlib/utils-async-none-by-right 0.0.4 → 0.0.8
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 +48 -2
- package/docs/types/index.d.ts +2 -2
- package/lib/limit.js +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -5
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2022 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ limitations under the License.
|
|
|
20
20
|
|
|
21
21
|
# noneByRightAsync
|
|
22
22
|
|
|
23
|
-
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
|
|
23
|
+
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
|
|
24
24
|
|
|
25
25
|
> Test whether all elements in a collection fail a test implemented by a predicate function, iterating from right to left.
|
|
26
26
|
|
|
@@ -380,6 +380,25 @@ noneByRightAsync( files, predicate, done );
|
|
|
380
380
|
|
|
381
381
|
<!-- /.references -->
|
|
382
382
|
|
|
383
|
+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
|
|
384
|
+
|
|
385
|
+
<section class="related">
|
|
386
|
+
|
|
387
|
+
* * *
|
|
388
|
+
|
|
389
|
+
## See Also
|
|
390
|
+
|
|
391
|
+
- <span class="package-name">[`@stdlib/utils/async/any-by-right`][@stdlib/utils/async/any-by-right]</span><span class="delimiter">: </span><span class="description">test whether at least one element in a collection passes a test implemented by a predicate function, iterating from right to left.</span>
|
|
392
|
+
- <span class="package-name">[`@stdlib/utils/async/every-by-right`][@stdlib/utils/async/every-by-right]</span><span class="delimiter">: </span><span class="description">test whether all elements in a collection pass a test implemented by a predicate function, iterating from right to left.</span>
|
|
393
|
+
- <span class="package-name">[`@stdlib/utils/async/for-each-right`][@stdlib/utils/async/for-each-right]</span><span class="delimiter">: </span><span class="description">invoke a function once for each element in a collection, iterating from right to left.</span>
|
|
394
|
+
- <span class="package-name">[`@stdlib/utils/async/none-by`][@stdlib/utils/async/none-by]</span><span class="delimiter">: </span><span class="description">test whether all elements in a collection fail a test implemented by a predicate function.</span>
|
|
395
|
+
- <span class="package-name">[`@stdlib/utils/none-by-right`][@stdlib/utils/none-by-right]</span><span class="delimiter">: </span><span class="description">test whether all elements in a collection fail a test implemented by a predicate function, iterating from right to left.</span>
|
|
396
|
+
- <span class="package-name">[`@stdlib/utils/async/some-by-right`][@stdlib/utils/async/some-by-right]</span><span class="delimiter">: </span><span class="description">test whether a collection contains at least `n` elements which pass a test implemented by a predicate function, iterating from right to left.</span>
|
|
397
|
+
|
|
398
|
+
</section>
|
|
399
|
+
|
|
400
|
+
<!-- /.related -->
|
|
401
|
+
|
|
383
402
|
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
|
|
384
403
|
|
|
385
404
|
|
|
@@ -406,7 +425,7 @@ See [LICENSE][stdlib-license].
|
|
|
406
425
|
|
|
407
426
|
## Copyright
|
|
408
427
|
|
|
409
|
-
Copyright © 2016-
|
|
428
|
+
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
410
429
|
|
|
411
430
|
</section>
|
|
412
431
|
|
|
@@ -425,9 +444,20 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
425
444
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-async-none-by-right/main.svg
|
|
426
445
|
[coverage-url]: https://codecov.io/github/stdlib-js/utils-async-none-by-right?branch=main
|
|
427
446
|
|
|
447
|
+
<!--
|
|
448
|
+
|
|
428
449
|
[dependencies-image]: https://img.shields.io/david/stdlib-js/utils-async-none-by-right.svg
|
|
429
450
|
[dependencies-url]: https://david-dm.org/stdlib-js/utils-async-none-by-right/main
|
|
430
451
|
|
|
452
|
+
-->
|
|
453
|
+
|
|
454
|
+
[umd]: https://github.com/umdjs/umd
|
|
455
|
+
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
456
|
+
|
|
457
|
+
[deno-url]: https://github.com/stdlib-js/utils-async-none-by-right/tree/deno
|
|
458
|
+
[umd-url]: https://github.com/stdlib-js/utils-async-none-by-right/tree/umd
|
|
459
|
+
[esm-url]: https://github.com/stdlib-js/utils-async-none-by-right/tree/esm
|
|
460
|
+
|
|
431
461
|
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
432
462
|
[chat-url]: https://gitter.im/stdlib-js/stdlib/
|
|
433
463
|
|
|
@@ -443,6 +473,22 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
443
473
|
|
|
444
474
|
[mdn-object]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
|
|
445
475
|
|
|
476
|
+
<!-- <related-links> -->
|
|
477
|
+
|
|
478
|
+
[@stdlib/utils/async/any-by-right]: https://www.npmjs.com/package/@stdlib/utils-async-any-by-right
|
|
479
|
+
|
|
480
|
+
[@stdlib/utils/async/every-by-right]: https://www.npmjs.com/package/@stdlib/utils-async-every-by-right
|
|
481
|
+
|
|
482
|
+
[@stdlib/utils/async/for-each-right]: https://www.npmjs.com/package/@stdlib/utils-async-for-each-right
|
|
483
|
+
|
|
484
|
+
[@stdlib/utils/async/none-by]: https://www.npmjs.com/package/@stdlib/utils-async-none-by
|
|
485
|
+
|
|
486
|
+
[@stdlib/utils/none-by-right]: https://www.npmjs.com/package/@stdlib/utils-none-by-right
|
|
487
|
+
|
|
488
|
+
[@stdlib/utils/async/some-by-right]: https://www.npmjs.com/package/@stdlib/utils-async-some-by-right
|
|
489
|
+
|
|
490
|
+
<!-- </related-links> -->
|
|
491
|
+
|
|
446
492
|
</section>
|
|
447
493
|
|
|
448
494
|
<!-- /.links -->
|
package/docs/types/index.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ type BinaryPredicate = ( value: any, next: Callback ) => void;
|
|
|
85
85
|
* @param index - collection index
|
|
86
86
|
* @param next - callback which should be called once the `predicate` function has finished processing a collection `value`
|
|
87
87
|
*/
|
|
88
|
-
type
|
|
88
|
+
type TernaryPredicate = ( value: any, index: number, next: Callback ) => void;
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Checks whether an element in a collection passes a test.
|
|
@@ -105,7 +105,7 @@ type QuaternaryPredicate = ( value: any, index: number, collection: Collection,
|
|
|
105
105
|
* @param collection - input collection
|
|
106
106
|
* @param next - callback which should be called once the `predicate` function has finished processing a collection `value`
|
|
107
107
|
*/
|
|
108
|
-
type Predicate = BinaryPredicate |
|
|
108
|
+
type Predicate = BinaryPredicate | TernaryPredicate | QuaternaryPredicate;
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* Tests whether all elements in a collection fail a test implemented by a predicate function, iterating from right to left.
|
package/lib/limit.js
CHANGED
|
@@ -70,7 +70,7 @@ function limit( collection, opts, predicate, done ) {
|
|
|
70
70
|
for ( i = 0; i < lim; i++ ) {
|
|
71
71
|
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
|
|
72
72
|
if ( idx > 0 ) {
|
|
73
|
-
next(); // eslint-disable-line callback-return
|
|
73
|
+
next(); // eslint-disable-line node/callback-return
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/utils-async-none-by-right",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Test whether all elements in a collection fail a test implemented by a predicate function, iterating from right to left.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|