UNPKG
@wezom/type-guards
Version:
latest (0.1.0)
0.1.0
0.0.3
0.0.2
Simple TypeScript type guards
@wezom/type-guards
/
dist
/
es
/
isNotEmptyString.js
4 lines
(3 loc)
•
109 B
JavaScript
View Raw
1
2
3
4
export
const
isNotEmptyString
= (
sample
) => {
return
typeof
sample ===
'string'
&& sample.
length
>
0
; };