Skip to main content

FunctionUtils

Utility functions involving functions

Functions

bind

FunctionUtils.bind(
selftable,
funcfunction
) → function

Binds the "self" variable to the function as the first argument

Show raw api
{
    "functions": [
        {
            "name": "bind",
            "desc": "Binds the \"self\" variable to the function as the first argument",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "table"
                },
                {
                    "name": "func",
                    "desc": "",
                    "lua_type": "function"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "function"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 15,
                "path": "src/functionutils/src/Shared/FunctionUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "FunctionUtils",
    "desc": "Utility functions involving functions",
    "source": {
        "line": 5,
        "path": "src/functionutils/src/Shared/FunctionUtils.lua"
    }
}