Skip to content

Commit f450f69

Browse files
committed
Subject: ll_ is updates
Issue: #3 Comment:
1 parent 1d2fe2b commit f450f69

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

readme.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ _example [/issues/3](../../issues/3)_
4545
function ll_(){
4646
var args = [];
4747
for (var i = 0; i < arguments.length; i++) {
48-
args.push(typeof arguments[i] === 'object' || typeof arguments[i] === 'function' ? ('' + JSON.stringify(arguments[i], null, ' ')) : ('' + arguments[i]));
48+
args.push(typeof arguments[i] === 'object' ? ('' + JSON.stringify(arguments[i], null, ' ')) : ('' + arguments[i]));
49+
}
50+
if(!/%s/.test(args[0])){
51+
args.unshift(new Array(args.length).join('\n%s'));
4952
}
50-
if(typeof args[0] === 'string' && !/%s/.test(args[0]))
51-
args.unshift(Array(args.length + 1).join('\n%s'));
5253
Logger.log.apply(Logger, args);
5354
}
5455
```

0 commit comments

Comments
 (0)