Home > @wixc3/common > mapObject
Maps key value pairs of a plain object
Signature:
export declare function mapObject(obj: object, mapping: (entry: [string, any]) => [string, any]): {
[k: string]: any;
};
Parameter | Type | Description |
---|---|---|
obj | object | |
mapping | (entry: \[string, any\]) => \[string, any\] |
Returns:
{ [k: string]: any; }