removeproperty 28obj 2c prop 29

Solutions on MaxInterview for removeproperty 28obj 2c prop 29 by the best coders in the world

showing results for - "removeproperty 28obj 2c prop 29"
Hannah
01 Mar 2020
1function removeProperty(obj, prop) {
2if (obj[prop] != undefined) {
3    delete obj[prop];
4    return true;
5} else {
6    return false;
7}
8return null;
9}