s
s
spellbook
Search…
isSet
Check isSet values (null, "", [], undefined)
1
const a = ""
2
sb.isSet(a)
Copied!
1
-> false
Copied!
sb.isEmpty && sb.get combination:
1
const a = {
2
a: [
3
{ a: [1, 2, 3] }
4
],
5
b: 4
6
}
7
8
9
sb.isSet(sb.get(a, 'a.0.a.1'))
Copied!
1
-> true
Copied!
1
sb.isEmpty(sb.get(a, 'a.0.b.1'))
Copied!
1
-> false
Copied!
1
sb.isSet(sb.get(a, 'a.0.b.1'))
Copied!
1
-> false
Copied!
Last modified 1yr ago
Copy link