@stdlib/array-base-group-entries-by 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 CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2024 The Stdlib Authors.
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-2024. The Stdlib [Authors][stdlib-authors].
216
+ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
217
217
 
218
218
  </section>
219
219
 
@@ -226,8 +226,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
226
226
  [npm-image]: http://img.shields.io/npm/v/@stdlib/array-base-group-entries-by.svg
227
227
  [npm-url]: https://npmjs.org/package/@stdlib/array-base-group-entries-by
228
228
 
229
- [test-image]: https://github.com/stdlib-js/array-base-group-entries-by/actions/workflows/test.yml/badge.svg?branch=v0.2.1
230
- [test-url]: https://github.com/stdlib-js/array-base-group-entries-by/actions/workflows/test.yml?query=branch:v0.2.1
229
+ [test-image]: https://github.com/stdlib-js/array-base-group-entries-by/actions/workflows/test.yml/badge.svg?branch=v0.2.3
230
+ [test-url]: https://github.com/stdlib-js/array-base-group-entries-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-entries-by/main.svg
233
233
  [coverage-url]: https://codecov.io/github/stdlib-js/array-base-group-entries-by?branch=main
@@ -239,8 +239,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
239
239
 
240
240
  -->
241
241
 
242
- [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
243
- [chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
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
 
@@ -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 EntriesResults<K, T> {
77
+ interface EntriesResults<T> {
78
78
  /**
79
79
  * Object properties.
80
80
  */
81
- [key: K]: Array<[ number, T ]>;
81
+ [key: Key]: Array<[ number, T ]>;
82
82
  }
83
83
 
84
84
  /**
@@ -99,7 +99,7 @@ interface EntriesResults<K, T> {
99
99
  * var out = groupEntriesBy( x, indicator );
100
100
  * // returns { 'b': [ [ 0, 'beep' ], [ 1, 'boop' ], [ 3, 'bar' ] ], 'f': [ [ 2, 'foo' ] ] }
101
101
  */
102
- declare function groupEntriesBy<T = unknown, U = unknown>( x: Collection<T> | AccessorArrayLike<T>, indicator: Indicator<T, U>, thisArg?: ThisParameterType<Indicator<T, U>> ): EntriesResults<Key, T>;
102
+ declare function groupEntriesBy<T = unknown, U = unknown>( x: Collection<T> | AccessorArrayLike<T>, indicator: Indicator<T, U>, thisArg?: ThisParameterType<Indicator<T, U>> ): EntriesResults<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-entries-by",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Group element entries according to an indicator function.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -30,8 +30,8 @@
30
30
  "url": "https://github.com/stdlib-js/stdlib/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@stdlib/array-base-resolve-getter": "^0.2.0",
34
- "@stdlib/assert-is-array": "^0.2.1"
33
+ "@stdlib/array-base-resolve-getter": "^0.2.2",
34
+ "@stdlib/assert-is-array": "^0.2.2"
35
35
  },
36
36
  "devDependencies": {},
37
37
  "engines": {