remove prop from obj js code example
Example: removeProperty(obj, prop)
function removeProperty(obj, prop) {
if (obj[prop] != undefined) {
delete obj[prop];
return true;
} else {
return false;
}
return null;
}
function removeProperty(obj, prop) {
if (obj[prop] != undefined) {
delete obj[prop];
return true;
} else {
return false;
}
return null;
}