Skip to content

Instantly share code, notes, and snippets.

@JoshMock
Created December 12, 2013 21:28
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 JoshMock/7935786 to your computer and use it in GitHub Desktop.
Save JoshMock/7935786 to your computer and use it in GitHub Desktop.
function myFn1 (arg1) {
var var1 = doSomethingWith(arg1), // set breakpoint here
var2 = doSomethingElseWith(var1);
_.each([1, 2, 3], function (val) {
doAnotherThingWth(var2); // var2 is still available in dev tools here, but var1 is not
})
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment