MCPcopy Create free account
hub / github.com/subquery/subql / camelCaseObjectKey

Function camelCaseObjectKey

packages/node-core/src/utils/object.ts:14–22  ·  view source on GitHub ↗
(object: Record<string, any>)

Source from the content-addressed store, hash-verified

12}
13
14export function camelCaseObjectKey(object: Record<string, any>): object {
15 return Object.keys(object).reduce(
16 (result, key) => ({
17 ...result,
18 [camelCase(key)]: object[key],
19 }),
20 {}
21 );
22}
23
24export function splitArrayByRatio(arr: number[], weights: number[]): number[][] {
25 const result: number[][] = [];

Callers 1

object.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected