s
s
spellbook
Search…
⌃K

isEmpty

Check isEmpty values (null, "", [], undefined) Alternative names: empty
const a = ""
sb.isEmpty(a)
-> true
sb.isEmpty && sb.get combination:
const a = {
a: [
{ a: [1, 2, 3] }
],
b: 4
}
sb.isEmpty(sb.get(a, 'a.0.a.1'))
-> false
sb.isEmpty(sb.get(a, 'a.0.b.1'))
-> true
sb.isEmpty(sb.get(a, 'a.0.b.1'))
-> true
Last modified 2yr ago