UNPKG
panjareh
Version:
latest (1.0.16)
1.0.16
Panjareh using aparat and phoenix-video-player to play videos on desktops and tvs.
panjareh
/
src
/
utils
/
isEmpty.js
14 lines
(12 loc)
•
232 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/** * Simple object empty check. *
@param
obj
*
@returns
{
boolean
} */
export
default
function
isEmpty
(
obj
) {
return
( obj &&
Object
.
keys
(obj).
length
===
0
&&
Object
.
getPrototypeOf
(obj) ===
Object
.
prototype
); }