Skip to content

Instantly share code, notes, and snippets.

View ddanielsantos's full-sized avatar

Daniel Santos ddanielsantos

View GitHub Profile
[
{
"key": "ctrl+n",
"command": "-workbench.action.files.newUntitledFile"
},
{
"key": "ctrl+n",
"command": "explorer.newFile"
},
{
export function removePropriedadesNumeradas<T extends Object>(objetoComNumero: T): Partial<T> {
const objetoTratado: Partial<T> = {}
const propriedades = Object.keys(objetoComNumero) as Array<keyof typeof objetoComNumero>
for (let index = 0; index < propriedades.length; index++) {
if (isNaN(Number(propriedades[index]))) {
objetoComNumero[propriedades[index]] = propriedades[index]
}
}