-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtype.lua
More file actions
16 lines (12 loc) · 623 Bytes
/
type.lua
File metadata and controls
16 lines (12 loc) · 623 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
local function isBoolean(a) return type(a) == "boolean" end
local function isNumber(a) return type(a) == "number" end
local function isString(a) return type(a) == "string" end
local function isFunction(a) return type(a) == "function" end
local function isTable(a) return type(a) == "table" end
local function isUserData(a) return type(a) == "userdata" end
local function isNil(a) return a == nil end
return {
isBoolean = isBoolean, isNumber = isNumber, isString = isString,
isFunction = isFunction, isTable = isTable, isUserData = isUserData,
isNil = isNil
}