UNPKG

easy-api.ts

Version:

A powerful library to create your own API with ease.

1 lines 631 B
Object.defineProperty(exports,"__esModule",{value:!0});let APIFunction_1=require("../../classes/structures/APIFunction"),Util_1=require("../../classes/internal/Util");class ArrayExists extends APIFunction_1.APIFunction{name="$arrayExists";description="Checks if an array exists or not.";parameters=[{name:"Name",description:"The name of the array.",type:APIFunction_1.ParamType.String,required:!0,rest:!1,defaultValue:null}];usage="$arrayExists[name]";returns=APIFunction_1.ParamType.Boolean;aliases=[];compile=!0;async run(e,[r]){return Util_1.Util.stringBool(e.internalVarExists("NodeJS.Arrays:"+r))}}exports.default=ArrayExists;