Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

implement the remove property function

function removeProperty(obj, prop) {
  
  if (obj.hasOwnProperty(prop)) { 
    delete obj[prop];
    return true;
  }

  return false;
}
 
PREVIOUS NEXT
Tagged: #implement #remove #property #function
ADD COMMENT
Topic
Name
9+1 =