Last active
May 28, 2019 20:30
-
-
Save yairEO/30758e93ccb4a9978ba3e661e7025184 to your computer and use it in GitHub Desktop.
console.log emphasize first arg
This file contains 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 characters
console.log = ((_c) => (...args) => args.length > 1 ? _c("%c "+ args[0], 'background:indianred; color:white; border-radius:3px; padding:1px;', ...args.slice(1)) : _c(...args))(console.log); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment