UNPKG
plxnner
Version:
beta (0.0.2-beta.1)
latest (0.0.8)
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.2-beta.1
0.0.2-beta.0
0.0.1
0.0.1-alpha.5
0.0.1-alpha.4
0.0.1-alpha.3
0.0.1-alpha.2
0.0.1-alpha.1
0.0.1-alpha.0
An elegant open-source planner for Instagram
dxlliv.github.io/planner/docs/
dxlliv/planner
plxnner
/
utils
/
utilsObject.ts
15 lines
(13 loc)
•
243 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/** * Remove undefined properties from object * *
@param
obj
*/
export
function
removeUndefinedFromObject
(
obj: any
) {
Object
.
keys
(obj).
forEach
(
(
key
) =>
{
if
(obj[key] ===
undefined
) {
delete
obj[key] } })
return
obj }