UNPKG
@toreda/log
Version:
latest (0.6.16)
0.6.16
0.6.15
0.6.14
0.6.13
0.6.12
0.6.11
0.6.10
0.6.9
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.4
0.5.3
0.5.2
0.5.0
0.4.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.0
Lightweight TypeScript logger with flexible custom transports.
github.com/toreda/log
toreda/log
@toreda/log
/
dist
/
check
/
id.js
15 lines
(14 loc)
•
322 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
checkId
=
void
0
;
function
checkId
(
input
) {
if
(
typeof
input !==
'string'
) {
return
false
; }
const
trimmed = input.
trim
();
if
(!trimmed) {
return
false
; }
return
true
; }
exports
.
checkId
= checkId;