mirror of
https://github.com/flynx/colors.js.git
synced 2026-01-12 22:35:37 +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 args = Array.prototype.slice.call(arguments);
|
||||||
|
|
||||||
var str = args.map(function(arg) {
|
var str = args.map(function(arg) {
|
||||||
if (arg !== undefined && arg.constructor === String) {
|
if (arg != undefined && arg.constructor === String) {
|
||||||
return arg;
|
return arg;
|
||||||
} else {
|
} else {
|
||||||
return util.inspect(arg);
|
return util.inspect(arg);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user