[JS] Remove Object Keys
THIS SITE IS MIRROR || Skip to Full Contents (Read More)
[JS] Remove Object Keys - pre>
var thisIsObject=
apos;Cowapos; : apos;Mooapos;,
apos;Catapos; : apos;Meowapos;,
var thisIsObject= {
‘Cow’ : ‘Moo’,
‘Cat’ : ‘Meow’,
‘Dog’ : ‘Bark’
};
try {
delete thisIsObject[‘Cow’];
} catch(e){
thisIsObject.cow = undefined;
}//test using developer tools F12
conso
THIS SITE IS MIRROR || Skip to Full Contents (Read More)
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.