Skip to content
JustGod edited this page Oct 28, 2023 · 1 revision

Map

Constructor

(method) Map:Constructor()

data

table<string, any>

filter

(method) Map:filter(callback: fun(key: string, value: any):boolean)
  -> Map

forEach

(method) Map:forEach(callback: fun(key: string, value: any):any)
  -> Map

get

(method) Map:get(key: string)
  -> any

has

(method) Map:has(key: string)
  -> boolean

keys

(method) Map:keys(callback?: fun(key: string):void)
  -> table<string, any>

map

(method) Map:map(callback: fun(key: string, value: any):any)
  -> Map

predicate

(method) Map:predicate(callback: fun(key: string, value: any):boolean)
  -> boolean

remove

(method) Map:remove(key: string)
  -> boolean

set

(method) Map:set(key: string, value: any)
  -> Map

values

(method) Map:values(callback?: fun(value: any):void)
  -> table<string, any>
Clone this wiki locally