mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-04-22 20:47:57 +00:00
31467f90d4
- @pezkuwi/papi-utils (rebrand of @polkadot-api/utils) - @pezkuwi/bizinikiwi-bindings (rebrand of @polkadot-api/substrate-bindings) - @pezkuwi/metadata-builders (rebrand of @polkadot-api/metadata-builders) - @pezkuwi/merkleize-metadata (rebrand of @polkadot-api/merkleize-metadata) All @polkadot-api references replaced with @pezkuwi equivalents.
14 lines
377 B
JavaScript
14 lines
377 B
JavaScript
function mapObject(input, mapper) {
|
|
return Object.fromEntries(
|
|
Object.entries(input).map(
|
|
([key, value]) => [key, mapper(value, key)]
|
|
)
|
|
);
|
|
}
|
|
const mapStringRecord = (input, mapper) => Object.fromEntries(
|
|
Object.entries(input).map(([key, value]) => [key, mapper(value, key)])
|
|
);
|
|
|
|
export { mapObject, mapStringRecord };
|
|
//# sourceMappingURL=mapObject.mjs.map
|