@stdlib/utils-none-by-right 0.0.7 → 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/package.json +1 -1
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
|
# noneByRight
|
|
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
|
|
|
@@ -202,6 +202,25 @@ bool = noneByRight( arr, isPositive );
|
|
|
202
202
|
|
|
203
203
|
<!-- /.references -->
|
|
204
204
|
|
|
205
|
+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
|
|
206
|
+
|
|
207
|
+
<section class="related">
|
|
208
|
+
|
|
209
|
+
* * *
|
|
210
|
+
|
|
211
|
+
## See Also
|
|
212
|
+
|
|
213
|
+
- <span class="package-name">[`@stdlib/utils/any-by-right`][@stdlib/utils/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>
|
|
214
|
+
- <span class="package-name">[`@stdlib/utils/every-by-right`][@stdlib/utils/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>
|
|
215
|
+
- <span class="package-name">[`@stdlib/utils/for-each-right`][@stdlib/utils/for-each-right]</span><span class="delimiter">: </span><span class="description">invoke a function for each element in a collection, iterating from right to left.</span>
|
|
216
|
+
- <span class="package-name">[`@stdlib/utils/none`][@stdlib/utils/none]</span><span class="delimiter">: </span><span class="description">test whether all elements in a collection are falsy.</span>
|
|
217
|
+
- <span class="package-name">[`@stdlib/utils/none-by`][@stdlib/utils/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>
|
|
218
|
+
- <span class="package-name">[`@stdlib/utils/some-by-right`][@stdlib/utils/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>
|
|
219
|
+
|
|
220
|
+
</section>
|
|
221
|
+
|
|
222
|
+
<!-- /.related -->
|
|
223
|
+
|
|
205
224
|
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
|
|
206
225
|
|
|
207
226
|
|
|
@@ -228,7 +247,7 @@ See [LICENSE][stdlib-license].
|
|
|
228
247
|
|
|
229
248
|
## Copyright
|
|
230
249
|
|
|
231
|
-
Copyright © 2016-
|
|
250
|
+
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
232
251
|
|
|
233
252
|
</section>
|
|
234
253
|
|
|
@@ -247,9 +266,20 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
247
266
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-none-by-right/main.svg
|
|
248
267
|
[coverage-url]: https://codecov.io/github/stdlib-js/utils-none-by-right?branch=main
|
|
249
268
|
|
|
269
|
+
<!--
|
|
270
|
+
|
|
250
271
|
[dependencies-image]: https://img.shields.io/david/stdlib-js/utils-none-by-right.svg
|
|
251
272
|
[dependencies-url]: https://david-dm.org/stdlib-js/utils-none-by-right/main
|
|
252
273
|
|
|
274
|
+
-->
|
|
275
|
+
|
|
276
|
+
[umd]: https://github.com/umdjs/umd
|
|
277
|
+
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
278
|
+
|
|
279
|
+
[deno-url]: https://github.com/stdlib-js/utils-none-by-right/tree/deno
|
|
280
|
+
[umd-url]: https://github.com/stdlib-js/utils-none-by-right/tree/umd
|
|
281
|
+
[esm-url]: https://github.com/stdlib-js/utils-none-by-right/tree/esm
|
|
282
|
+
|
|
253
283
|
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
254
284
|
[chat-url]: https://gitter.im/stdlib-js/stdlib/
|
|
255
285
|
|
|
@@ -265,6 +295,22 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
265
295
|
|
|
266
296
|
[mdn-object]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
|
|
267
297
|
|
|
298
|
+
<!-- <related-links> -->
|
|
299
|
+
|
|
300
|
+
[@stdlib/utils/any-by-right]: https://www.npmjs.com/package/@stdlib/utils-any-by-right
|
|
301
|
+
|
|
302
|
+
[@stdlib/utils/every-by-right]: https://www.npmjs.com/package/@stdlib/utils-every-by-right
|
|
303
|
+
|
|
304
|
+
[@stdlib/utils/for-each-right]: https://www.npmjs.com/package/@stdlib/utils-for-each-right
|
|
305
|
+
|
|
306
|
+
[@stdlib/utils/none]: https://www.npmjs.com/package/@stdlib/utils-none
|
|
307
|
+
|
|
308
|
+
[@stdlib/utils/none-by]: https://www.npmjs.com/package/@stdlib/utils-none-by
|
|
309
|
+
|
|
310
|
+
[@stdlib/utils/some-by-right]: https://www.npmjs.com/package/@stdlib/utils-some-by-right
|
|
311
|
+
|
|
312
|
+
<!-- </related-links> -->
|
|
313
|
+
|
|
268
314
|
</section>
|
|
269
315
|
|
|
270
316
|
<!-- /.links -->
|
package/docs/types/index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ type Binary = ( value: any, index: number ) => boolean;
|
|
|
54
54
|
* @param collection - input collection
|
|
55
55
|
* @returns boolean indicating whether an element in a collection passes a test
|
|
56
56
|
*/
|
|
57
|
-
type
|
|
57
|
+
type Ternary = ( value: any, index: number, collection: Collection ) => boolean;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Checks whether an element in a collection passes a test.
|
|
@@ -64,7 +64,7 @@ type Tertiary = ( value: any, index: number, collection: Collection ) => boolean
|
|
|
64
64
|
* @param collection - input collection
|
|
65
65
|
* @returns boolean indicating whether an element in a collection passes a test
|
|
66
66
|
*/
|
|
67
|
-
type Predicate = Nullary | Unary | Binary |
|
|
67
|
+
type Predicate = Nullary | Unary | Binary | Ternary;
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Tests whether all elements in a collection fail a test implemented by a predicate function, iterating from right to left.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/utils-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": {
|