UNPKG
non-empty
Version:
latest (1.0.1)
1.0.1
1.0.0
Check if the value is not empty
github.com/WaterLemons2k/non-empty
WaterLemons2k/non-empty
non-empty
/
dist
/
index.cjs
2 lines
(1 loc)
•
249 B
JavaScript
View Raw
1
2
"use strict"
;
var
n=
Object
.
defineProperty
;
var
r
=(
t,e
)=>
n
(t,
"name"
,{
value
:e,
configurable
:!
0
});
var
i=
require
(
"util/types"
);
function
s
(
t
){
return
typeof
t!=
"object"
?!!
t
:t===
null
?!
1
:i.
isDate
(t)?!
0
:
Object
.
keys
(t).
length
>
0
}
r
(s,
"notEmpty"
),
module
.
exports
=s;