@stdlib/array-base-group-indices 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
@@ -182,7 +182,7 @@ See [LICENSE][stdlib-license].
182
182
 
183
183
  ## Copyright
184
184
 
185
- Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
185
+ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
186
186
 
187
187
  </section>
188
188
 
@@ -195,8 +195,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
195
195
  [npm-image]: http://img.shields.io/npm/v/@stdlib/array-base-group-indices.svg
196
196
  [npm-url]: https://npmjs.org/package/@stdlib/array-base-group-indices
197
197
 
198
- [test-image]: https://github.com/stdlib-js/array-base-group-indices/actions/workflows/test.yml/badge.svg?branch=v0.2.1
199
- [test-url]: https://github.com/stdlib-js/array-base-group-indices/actions/workflows/test.yml?query=branch:v0.2.1
198
+ [test-image]: https://github.com/stdlib-js/array-base-group-indices/actions/workflows/test.yml/badge.svg?branch=v0.2.3
199
+ [test-url]: https://github.com/stdlib-js/array-base-group-indices/actions/workflows/test.yml?query=branch:v0.2.3
200
200
 
201
201
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/array-base-group-indices/main.svg
202
202
  [coverage-url]: https://codecov.io/github/stdlib-js/array-base-group-indices?branch=main
@@ -208,8 +208,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
208
208
 
209
209
  -->
210
210
 
211
- [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
212
- [chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
211
+ [chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
212
+ [chat-url]: https://stdlib.zulipchat.com
213
213
 
214
214
  [stdlib]: https://github.com/stdlib-js/stdlib
215
215
 
@@ -30,11 +30,11 @@ type Key = string | symbol | number;
30
30
  /**
31
31
  * Interface describing returned group results.
32
32
  */
33
- interface IndicesResults<K, T> {
33
+ interface IndicesResults<T> {
34
34
  /**
35
35
  * Object properties.
36
36
  */
37
- [key: K]: Array<T>;
37
+ [key: Key]: Array<T>;
38
38
  }
39
39
 
40
40
  /**
@@ -51,7 +51,7 @@ interface IndicesResults<K, T> {
51
51
  * var out = groupIndices( x, groups );
52
52
  * // returns { 'b': [ 0, 1, 3 ], 'f': [ 2 ] }
53
53
  */
54
- declare function groupIndices<T = unknown>( x: Collection<T> | AccessorArrayLike<T>, groups: Collection<Key> | AccessorArrayLike<Key> ): IndicesResults<Key, number>;
54
+ declare function groupIndices<T = unknown>( x: Collection<T> | AccessorArrayLike<T>, groups: Collection<Key> | AccessorArrayLike<Key> ): IndicesResults<number>;
55
55
 
56
56
 
57
57
  // EXPORTS //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/array-base-group-indices",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Group element indices as arrays associated with distinct keys.",
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": {