diff options
Diffstat (limited to 'meta/3rd/OpenResty/library/table/isempty.lua')
m--------- | meta/3rd/OpenResty | 0 | ||||
-rw-r--r-- | meta/3rd/OpenResty/library/table/isempty.lua | 22 |
2 files changed, 0 insertions, 22 deletions
diff --git a/meta/3rd/OpenResty b/meta/3rd/OpenResty new file mode 160000 +Subproject 3bec36f0f645bb38b3c8208990d5c36feb66ce3 diff --git a/meta/3rd/OpenResty/library/table/isempty.lua b/meta/3rd/OpenResty/library/table/isempty.lua deleted file mode 100644 index b1cef6fb..00000000 --- a/meta/3rd/OpenResty/library/table/isempty.lua +++ /dev/null @@ -1,22 +0,0 @@ ----@meta - ---- Returns `true` when the given Lua table contains neither non-nil array elements nor non-nil key-value pairs, or `false` otherwise. ---- ---- This API can be JIT compiled. ---- Usage: ---- ---- ```lua ---- local isempty = require "table.isempty" ---- ---- print(isempty({})) -- true ---- print(isempty({nil, dog = nil})) -- true ---- print(isempty({"a", "b"})) -- false ---- print(isempty({nil, 3})) -- false ---- print(isempty({cat = 3})) -- false ---- ``` ---- ----@param t table ----@return boolean -local function isempty(t) end - -return isempty |