@stdlib/array-base-group-indices 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
|
@@ -182,7 +182,7 @@ See [LICENSE][stdlib-license].
|
|
|
182
182
|
|
|
183
183
|
## Copyright
|
|
184
184
|
|
|
185
|
-
Copyright © 2016-
|
|
185
|
+
Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
|
|
186
186
|
|
|
187
187
|
</section>
|
|
188
188
|
|
|
@@ -195,8 +195,8 @@ Copyright © 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.
|
|
199
|
-
[test-url]: https://github.com/stdlib-js/array-base-group-indices/actions/workflows/test.yml?query=branch:v0.2.
|
|
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 © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
208
208
|
|
|
209
209
|
-->
|
|
210
210
|
|
|
211
|
-
[chat-image]: https://img.shields.io/
|
|
212
|
-
[chat-url]: https://
|
|
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
|
|
package/docs/types/index.d.ts
CHANGED
|
@@ -30,11 +30,11 @@ type Key = string | symbol | number;
|
|
|
30
30
|
/**
|
|
31
31
|
* Interface describing returned group results.
|
|
32
32
|
*/
|
|
33
|
-
interface IndicesResults<
|
|
33
|
+
interface IndicesResults<T> {
|
|
34
34
|
/**
|
|
35
35
|
* Object properties.
|
|
36
36
|
*/
|
|
37
|
-
[key:
|
|
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<
|
|
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.
|
|
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,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": {},
|