Closed JustinDrake closed 10 years ago
The Chrome console (maybe other consoles?) can be cleared with clear(). Typing just clear is clearer (no pun intended) and classier. Just one line:
clear()
clear
window.__defineGetter__('clear', function () { clear(); });
This is really cool but doesn't fit in the scope of log.
log
However, I have added it to another project of mine, terminal.js.
The Chrome console (maybe other consoles?) can be cleared with
clear()
. Typing justclear
is clearer (no pun intended) and classier. Just one line:window.__defineGetter__('clear', function () { clear(); });