UNPKG
@jkcfg/std
Version:
latest (0.4.0)
0.4.0
0.3.2
0.3.0
0.2.10
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.1.0
jk standard library
github.com/jkcfg/jk
jkcfg/jk
@jkcfg/std
/
log.js
15 lines
(14 loc)
•
274 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/** *
@module
std
*/
export
function
log
(
value
) {
if
(value ===
undefined
) { V8Worker2.
log
(
'undefined'
);
return
; }
if
(
typeof
value ===
'string'
) { V8Worker2.
log
(value);
return
; } V8Worker2.
log
(
JSON
.
stringify
(value)); }