Client: update named imports to default imports

This commit is contained in:
Barry Low committed 2018-09-13 16:33:47 -07:00
1 parent 14425dc233
commit 1637abbc88
17 files changed
+419 -249

No files matched your search

+4
View File
@@ -19,6 +19,10 @@ export function isEmpty (obj) {
return true
}
export function isString (value) {
return typeof value === 'string' || value instanceof String
}
export function validObject (object, ...keys) {
return keys.reduce((a, b) => (a || {})[b], object) !== undefined
}