Stack.forEach() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
function
No
argument?
{any}
Yes
readOnly?
Yes

Returns

{any[]}

Description

Execute a function once for each element in this Data Structure. It can be treated as read-only for this operation to perform it solely on its copy, without modifying the original to read the values. The following arguments will be provided to the function and can be accessed in it by using their name or the argument array:
  • argument[0]: _i {int}
  • argument[1]: _value {any}
  • argument[2]: _argument {any}

⚠️ **GitHub.com Fallback** ⚠️