Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created August 27, 2019 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debugmodedotnet/f9ffc6f1882e9e88a0275974e53e1503 to your computer and use it in GitHub Desktop.
Save debugmodedotnet/f9ffc6f1882e9e88a0275974e53e1503 to your computer and use it in GitHub Desktop.
function addToScope(){
if(!dbrepo.hasOwnProperty(bindingProperty)){
let value;
Object.defineProperty(dbrepo,bindingProperty,{
configurable:true,
enumerable:true ,
set: function(newvalue){
value = newvalue;
},
get:function(){
return value;
}
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment