@daeinc/array
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -87,5 +87,5 @@ /** | ||
*/ | ||
export declare const unwrapArrayOfObjects: (arr: { | ||
[key: string]: any; | ||
}[], objKey: string) => any[]; | ||
export declare const unwrapArrayOfObjects: <T>(arr: { | ||
[key: string]: T; | ||
}[], objKey: string) => T[]; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@daeinc/array", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Array utilities", | ||
@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts", |
@@ -113,11 +113,13 @@ # @daeinc/array | ||
This function can be useful when converting objects with `{x, y}` to `[x, y]`, for example. | ||
### unwrapArrayOfObjects | ||
```ts | ||
const unwrapArrayOfObjects: ( | ||
const unwrapArrayOfObjects: <T>( | ||
arr: { | ||
[key: string]: any; | ||
[key: string]: T; | ||
}[], | ||
objKey: string | ||
) => any[]; | ||
) => T[]; | ||
``` | ||
@@ -124,0 +126,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
16858
135