Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Feature/arrayisarray#970

Merged
Perryvw merged 4 commits into
masterTypeScriptToLua/TypeScriptToLua:masterfrom
feature/arrayisarrayTypeScriptToLua/TypeScriptToLua:feature/arrayisarrayCopy head branch name to clipboard
Jan 26, 2021
Merged

Feature/arrayisarray#970
Perryvw merged 4 commits into
masterTypeScriptToLua/TypeScriptToLua:masterfrom
feature/arrayisarrayTypeScriptToLua/TypeScriptToLua:feature/arrayisarrayCopy head branch name to clipboard

Conversation

@Perryvw

@Perryvw Perryvw commented Jan 25, 2021

Copy link
Copy Markdown
Member

Formalize and expose Array.isArray convention as discussed in #737.

Also includes a small fix for a missing lualib dependency for string.split.

Fixes #738

@lolleko

lolleko commented Jan 26, 2021

Copy link
Copy Markdown
Member

Maybe replace the pcall in array.concat as well

if (pcall(() => (arg as any[]).length) && type(arg) !== "string") {

This could potentially fix #738

@Perryvw Perryvw merged commit 39c7420 into master Jan 26, 2021
@Perryvw Perryvw deleted the feature/arrayisarray branch January 26, 2021 20:13
Sign up for free to 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.

Array.concat does not work correctly when objects are passed as parameter.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.