UNPKG
apemandb
Version:
latest (8.7.4)
8.7.4
8.7.3
8.7.2
8.7.1
8.7.0
8.6.3
8.6.2
8.6.1
8.6.0
8.5.1
8.5.0
8.3.3
8.3.2
8.3.1
8.3.0
8.2.1
8.2.0
8.1.7
8.1.6
8.1.5
8.1.4
8.1.3
8.1.2
8.1.1
8.0.4
8.0.3
8.0.2
8.0.1
8.0.0
7.1.13
7.1.12
7.1.11
7.1.10
7.1.9
7.1.8
7.1.7
7.1.6
7.1.5
7.1.4
7.1.3
7.1.2
7.1.1
7.1.0
7.0.1
7.0.0
6.0.3
6.0.2
6.0.1
6.0.0
5.0.2
5.0.1
5.0.0
3.3.3
3.3.2
3.3.1
3.3.0
3.2.10
3.2.9
3.2.8
3.2.7
3.2.6
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.2
3.1.1
3.1.0
3.0.0
2.9.1
2.9.0
2.8.0
2.7.5
2.7.4
2.7.3
2.7.2
2.7.1
2.7.0
2.6.0
2.5.2
2.5.1
2.5.0
2.3.1
2.3.0
2.2.1
2.2.0
2.1.8
2.1.7
2.1.6
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.2.2
1.2.1
1.2.0
1.1.4
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
Database for apeman project.
github.com/apeman-labo/apemandb
apeman-labo/apemandb
apemandb
/
lib
/
helpers
/
delete_empty_props.js
15 lines
(12 loc)
•
301 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict'
/**
@lends
deleteEmptyProps */
function
deleteEmptyProps
(
obj
) {
for
(
let
key
of
Object
.
keys
(obj || {})) {
let
empty = (obj[ key ] ===
null
) || (
typeof
obj[ key ] ===
'undefined'
)
if
(empty) {
delete
obj[ key ] } }
return
obj }
module
.
exports
= deleteEmptyProps