#
cp.is
A simple class that lets you test if a value is
a particular type.
Notes: for best performance, assign the specific checks you want to use to local functions. Eg:
local is_nothing = require("cp.is").nothing
is_nothing(nil) == true
You can also get functions that negate the functions below by calling is.nt.XXX(...)
(read: "isn't XXX").
The individual functions are not documented, but all will work as expected. Eg:
is.blank("") == true
is.nt.blank("") == false
They can also be assigned directly to local values for better performance:
local isnt_blank = is.nt.blank
isnt_blank(nil) == false
#
API Overview
Functions - API calls offered directly by the extension
blank boolean callable falsey fn instance list nothing number object something string table truthy userdata