I am reading through some javascript code, and I have seen a lot of code that looks like this:
processMethod = processMethod || function(){};
it's usually found inside a function. I believe it's a shorthand code, but I am not sure what it does.
Does it check to see if processMethod has a value, and if it doesn't declares it as a function that can be defined later?