Merge pull request #7 from L1fescape/master

Variable arguments and falsy values
This commit is contained in:
Sindre Sorhus 2013-10-19 08:57:13 -07:00
commit 5bbb44b5a8
3 changed files with 17 additions and 3 deletions

View file

@ -27,7 +27,9 @@ function init() {
Object.keys(styles).forEach(function (name) {
ret[name] = {
get: function () {
var obj = defineProps(function self(str) {
var obj = defineProps(function self() {
var str = [].slice.call(arguments).join(' ');
if (!chalk.enabled) {
return str;
}