Skip to content

Instantly share code, notes, and snippets.

@EmranAhmed
Created October 15, 2017 03:22
Show Gist options
  • Save EmranAhmed/1c9eeaa06850603670f07741d501ecb1 to your computer and use it in GitHub Desktop.
Save EmranAhmed/1c9eeaa06850603670f07741d501ecb1 to your computer and use it in GitHub Desktop.
window.dump = function (data) {
console.log(data);
};
window.dd = function (...data) {
data.forEach(function(element) {
console.log(element);
});
throw {
message: 'Stopped execution because dd(), use dump() if you want to proceed',
toString: function () {
return this.message;
},
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment