
оставила только
"module": "commonJS
"Size: a a a
"module": "commonJS
"static mapData<T extends string, U extends {[k in T|string]?: any}>(data: U, keys: T[], replaceNotFoundWithNull: boolean = false): U{
return keys.reduce((map, key: T) => {
if (data.hasOwnProperty(key)){
map[key] = data[key];
} else if (replaceNotFoundWithNull){
map[key] = null;
}
return map;
}, {} as U);
}
kebab-case-is-the-best.ts
param-case.ts[x]