I hereby claim:
- I am cenkce on github.
- I am cenkce (https://keybase.io/cenkce) on keybase.
- I have a public key ASC-gr0h_WL5mVX2DVovhlHULn_2Ts-nUed-Ucdtm9S05wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class StylingComponent { | |
} | |
StylingComponent.$$styleContext = { | |
classNames: "", | |
userProps: { | |
width: null, | |
height: null, | |
paddingLeft: 10, | |
paddingRight: 10 |
const getId = (start): (() => number) => (): number => start++; | |
export class SomeData { | |
static getId = getId(0); | |
public icon: string; | |
public text: string = ""; | |
public color: string; | |
public idPrefix: string = 'data-'; | |
public id: string; |
function isObj(val){ | |
return val !== null && typeof val === "object"; | |
} | |
function recurse(acc, obj){ | |
for (var p in obj) { | |
acc[p] = isObj(obj[p]) ? recurse(acc[p] || {}, obj[p]) : obj[p]; | |
} | |
return acc; |