Skip to content

Conversation

@Perryvw
Copy link
Member

@Perryvw Perryvw commented Jun 12, 2021

LuaTableHas translates table.has(key) to table[key] ~= nil.

LuaTableDelete translates table.delete(key) to table[key] = nil

Closes #1021 and closes #1020

@Perryvw Perryvw requested review from lolleko and tomblind June 12, 2021 09:32
Copy link
Collaborator

@tomblind tomblind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Pretty straight-forward.

@Perryvw Perryvw merged commit bfb89e9 into master Jun 12, 2021
@Perryvw Perryvw deleted the feature/luatable-has branch June 12, 2021 12:55
@Zamiell
Copy link
Contributor

Zamiell commented Jun 12, 2021

Thank you Perry!

Docs still have to be updated here, right?

@Perryvw Perryvw mentioned this pull request Jun 13, 2021
@Perryvw
Copy link
Member Author

Perryvw commented Jun 13, 2021

Docs updated.

sanikoyes pushed a commit to sanikoyes/TypeScriptToLua that referenced this pull request Sep 24, 2021
* Add tests for luatable has

* Implement LuaTable has

* LuaTableDelete declaration and tests

* Implemented LuaTableDelete
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.

Add LuaTable.has(), LuaTable.delete()

3 participants