Skip to content

Fixed array functions storing and comparing values as strings - #411

Open
Daaisukidayo wants to merge 1 commit into
tryforge:devfrom
Daaisukidayo:patch
Open

Fixed array functions storing and comparing values as strings#411
Daaisukidayo wants to merge 1 commit into
tryforge:devfrom
Daaisukidayo:patch

Conversation

@Daaisukidayo

@DaaisukidayoDaaisukidayo commented Sep 6, 2026

Copy link
Copy Markdown
Contributor
  • $arrayIncludes parses its value, but every function writing into an array kept storing strings, so $arrayIncludes[nums;1] was false on an array built by $arrayLoad or $arrayPush, while $arrayIndexOf on the same array returned 0, and the opposite happened on $arrayPushJSON arrays.

  • $arrayLoad, $arrayPush, $arrayUnshift and $arraySplice now store numbers and booleans as such, and $arrayIncludes, $arrayIndexOf and $arrayLastIndexOf parse the value they look for the same way.

  • Wrapping a value in double quotes keeps it as a string, just like before.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@Daaisukidayo