Was working on some js code performance and saw this approach:
window.sample = {
    foo: function foo(a,b){
       // code goes here
    }
    bar: function bar(a,b){
       // code goes here
    }
}
is there any reason why you would decelerate the function name after the word "function" ?
dose it help to debug?
is it good or bad or just unnecessary?
 
     
     
    