Skip to content

Instantly share code, notes, and snippets.

View ChristopherJennings's full-sized avatar

Christopher Jennings ChristopherJennings

View GitHub Profile
@ChristopherJennings
ChristopherJennings / KenticoCloudHelper.tsx
Created July 24, 2017 14:34
Kentico Cloud TypeScript SDK property mapper
export function GetPascalCaseFromKenticoCloudName(name: string) {
let result = '';
let upperNext = false;
for (let i = 0; i < name.length; i++) {
let isSeparator = name[i] === '_';
if (i === 0 || isSeparator) {
upperNext = true;