Skip to content

Commit 37b480c

Browse files
committed
isNull
1 parent d8e31b8 commit 37b480c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Iatheto/Attributes.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@ public extension JSON {
178178
}
179179
}
180180

181+
var isNull: Bool {
182+
if case .null = self {
183+
return true
184+
}
185+
return false
186+
}
187+
181188
init(_ value: NSNumber) {
182189
self = .number(value.decimalValue)
183190
}

0 commit comments

Comments
 (0)