MCPcopy Create free account
hub / github.com/denodrivers/postgres / snakecaseToCamelcase

Function snakecaseToCamelcase

query/query.ts:278–287  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

276}
277
278function snakecaseToCamelcase(input: string) {
279 return input.split("_").reduce((res, word, i) => {
280 if (i !== 0) {
281 word = word[0].toUpperCase() + word.slice(1);
282 }
283
284 res += word;
285 return res;
286 }, "");
287}
288
289/**
290 * This class is used to handle the result of a query that returns an object

Callers 1

insertRowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected