Skip to content

Instantly share code, notes, and snippets.

View rebazomar121's full-sized avatar
💻
Working from home

rebaz omar rebazomar121

💻
Working from home
View GitHub Profile
@rebazomar121
rebazomar121 / splice-object-array.js
Last active May 13, 2022 20:17 — forked from scottopolis/splice-object-array.js
Remove object from array of objects in Javascript
// we have an array of objects, we want to remove one object using only the id property
const apps = [{id:34,name:'My App',another:'thing'},{id:37,name:'My New App',another:'things'}];
// get index of object with id of 37
const removeIndex = apps.findIndex( item => item.id === 37 );
// remove object
apps.splice( removeIndex, 1 );
// get index of object with id:37
I started programming in the last two years. I'm not hiding many personal
problems that prevented me from advancing, but in addition, I've tried so far and now,
I remember first starting the program, watching dozens of videos, most of them had opinions
about the program, but what i had in general was able to show me that the program has three levels.
1-Starting level
which is the time to start a single and two years in the program I can say it's the hardest
level because in this case you're not a developer and you can't spend your time and money to develop yourself
but you can determine your different and favorite languages