Closed Thom1729 closed 2 years ago
E.g. instead of:
export function objectKeys<Type extends object>(value: Type): Array<ObjectKeys<Type>> { return Object.keys(value) as Array<ObjectKeys<Type>>; }
Do:
export const objectKeys = Object.keys as <Type extends object>(value: Type) => Array<ObjectKeys<Type>>;
This saves a function call.
E.g. instead of:
Do:
This saves a function call.