- mapObject<const OriginalObject, const NewKey, const NewValue>(inputObject, mapCallback): Promise<Record<NewKey, NewValue>>
Type Parameters
- const OriginalObject
- const NewKey extends PropertyKey
- const NewValue
- mapObject<const OriginalObject, const NewKey, const NewValue>(inputObject, mapCallback): Record<NewKey, NewValue>
Type Parameters
- const OriginalObject
- const NewKey extends PropertyKey
- const NewValue
- mapObject<const OriginalObject, const NewKey, const NewValue>(inputObject, mapCallback): MaybePromise<Record<NewKey, NewValue>>
Type Parameters
- const OriginalObject
- const NewKey extends PropertyKey
- const NewValue
Maps an object. The callback must return a key and value.
Example
Package
@augment-vir/common
See