import { isEmpty } from "https://deno.land/x/somefn@v0.17.3/js/obj.ts";
是否为空
undefined
,{}
,{a:undefined}
,[]
,[undefined]
is empty.null
,0
,''
,0n
,false
,{a:null}
,[null]
is not empty.- 支持 Map 和 Set.
import { isEmpty } from "https://deno.land/x/somefn@v0.17.3/js/obj.ts";
是否为空
undefined
, {}
, {a:undefined}
, []
, [undefined]
is empty.null
, 0
, ''
, 0n
, false
, {a:null}
, [null]
is not empty.