@stdlib/array-base-group-values-by 0.2.2 → 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 +3 -3
- 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
|
@@ -213,7 +213,7 @@ See [LICENSE][stdlib-license].
|
|
|
213
213
|
|
|
214
214
|
## Copyright
|
|
215
215
|
|
|
216
|
-
Copyright © 2016-
|
|
216
|
+
Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
|
|
217
217
|
|
|
218
218
|
</section>
|
|
219
219
|
|
|
@@ -226,8 +226,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
226
226
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/array-base-group-values-by.svg
|
|
227
227
|
[npm-url]: https://npmjs.org/package/@stdlib/array-base-group-values-by
|
|
228
228
|
|
|
229
|
-
[test-image]: https://github.com/stdlib-js/array-base-group-values-by/actions/workflows/test.yml/badge.svg?branch=v0.2.
|
|
230
|
-
[test-url]: https://github.com/stdlib-js/array-base-group-values-by/actions/workflows/test.yml?query=branch:v0.2.
|
|
229
|
+
[test-image]: https://github.com/stdlib-js/array-base-group-values-by/actions/workflows/test.yml/badge.svg?branch=v0.2.3
|
|
230
|
+
[test-url]: https://github.com/stdlib-js/array-base-group-values-by/actions/workflows/test.yml?query=branch:v0.2.3
|
|
231
231
|
|
|
232
232
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/array-base-group-values-by/main.svg
|
|
233
233
|
[coverage-url]: https://codecov.io/github/stdlib-js/array-base-group-values-by?branch=main
|
|
@@ -239,8 +239,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
239
239
|
|
|
240
240
|
-->
|
|
241
241
|
|
|
242
|
-
[chat-image]: https://img.shields.io/
|
|
243
|
-
[chat-url]: https://
|
|
242
|
+
[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
|
|
243
|
+
[chat-url]: https://stdlib.zulipchat.com
|
|
244
244
|
|
|
245
245
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
246
246
|
|
package/docs/types/index.d.ts
CHANGED
|
@@ -74,11 +74,11 @@ type Indicator<T, U> = Nullary<U> | Unary<T, U> | Binary<T, U> | Ternary<T, U>;
|
|
|
74
74
|
/**
|
|
75
75
|
* Interface describing returned group results.
|
|
76
76
|
*/
|
|
77
|
-
interface ValuesResults<
|
|
77
|
+
interface ValuesResults<T> {
|
|
78
78
|
/**
|
|
79
79
|
* Object properties.
|
|
80
80
|
*/
|
|
81
|
-
[key:
|
|
81
|
+
[key: Key]: Array<T>;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/**
|
|
@@ -99,7 +99,7 @@ interface ValuesResults<K, T> {
|
|
|
99
99
|
* var out = groupValuesBy( x, indicator );
|
|
100
100
|
* // returns { 'b': [ 'beep', 'boop', 'bar' ], 'f': [ 'foo' ] }
|
|
101
101
|
*/
|
|
102
|
-
declare function groupValuesBy<T = unknown, U = unknown>( x: Collection<T> | AccessorArrayLike<T>, indicator: Indicator<T, U>, thisArg?: ThisParameterType<Indicator<T, U>> ): ValuesResults<
|
|
102
|
+
declare function groupValuesBy<T = unknown, U = unknown>( x: Collection<T> | AccessorArrayLike<T>, indicator: Indicator<T, U>, thisArg?: ThisParameterType<Indicator<T, U>> ): ValuesResults<T>;
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
// EXPORTS //
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/array-base-group-values-by",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Group element values according to an indicator 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-resolve-getter": "^0.2.
|
|
33
|
+
"@stdlib/array-base-resolve-getter": "^0.2.2",
|
|
34
34
|
"@stdlib/assert-is-array": "^0.2.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {},
|