- Preparing search index...
- The search index is not available
solid-akkadi
- mapByEntries<T, MappedK, MappedV>(obj, mapper): {
[k in MappedK]: MappedV
}
-
Type Parameters
-
T extends object
-
MappedK extends string
-
MappedV
Parameters
-
obj: T
-
mapper: ((entry) => [MappedK, MappedV])
-
- (entry): [MappedK, MappedV]
-
Returns [MappedK, MappedV]
Returns {
[k in MappedK]: MappedV
}
Map an object by its entries (tuples key/value)