minhnt-dev: only ssr
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
const isEmpty = (value : any) => {
|
||||
return (
|
||||
value == null || // From standard.js: Always use === - but obj == null is allowed to check null || undefined
|
||||
(typeof value === 'object' && Object.keys(value).length === 0) ||
|
||||
(typeof value === 'string' && value.trim().length === 0)
|
||||
)
|
||||
}
|
||||
|
||||
export { isEmpty }
|
||||
Reference in New Issue
Block a user