mirror of
https://github.com/flynx/colors.js.git
synced 2026-01-01 08:11:11 +00:00
Use weak equality check so we can colorize null in safe mode
This commit is contained in:
parent
2631877f88
commit
654f2b67e3
@ -105,7 +105,7 @@ function applyStyle() {
|
||||
var args = Array.prototype.slice.call(arguments);
|
||||
|
||||
var str = args.map(function(arg) {
|
||||
if (arg !== undefined && arg.constructor === String) {
|
||||
if (arg != undefined && arg.constructor === String) {
|
||||
return arg;
|
||||
} else {
|
||||
return util.inspect(arg);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user