Created
November 23, 2017 15:58
-
-
Save klihelp/16cd0972de6eb463c14c1bc511a76646 to your computer and use it in GitHub Desktop.
Revisions
-
klihelp created this gist
Nov 23, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ /** * Log Function in es6 */ function log() { var line = Array.prototype.slice .call(arguments) .map(function(argument) { return typeof argument === 'string' ? argument : JSON.stringify(argument); }) .join(' '); document.querySelector('#log').textContent += line + '\n'; }