You are reading a single comment by @fanoush and its replies. Click here to read the full conversation.
  • or full example - the oldlog("arguments=",arguments) call inside mylog is the "something else" part here

    >oldlog=console.log
    =function () { [native code] }
    >function mylog(){ oldlog("arguments=",arguments);oldlog.ap­ply(null,arguments);}
    =function () { ... }
    >console.log=global.print=mylog
    =function () { ... }
    >print("hello","world")
    arguments= [
      "hello",
      "world"
     ]
    hello world
    =undefined
    > 
    
About

Avatar for fanoush @fanoush started