microsoft / devicescript

TypeScript for Tiny IoT Devices (ESP32, RP2040, ...)
https://microsoft.github.io/devicescript/
MIT License
3.25k stars 116 forks source link

Implement es Set class #496

Closed pelikhan closed 1 year ago

pelikhan commented 1 year ago

Support for https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set

Guide: https://microsoft.github.io/devicescript/contributing#add-core-javascript-apis

KevinL10 commented 1 year ago

Hi @pelikhan! I'm interested in working on this – could you assign me to the issue?

pelikhan commented 1 year ago

Great! @mmoskal any guidance around implementing set? Does this require special handling from the C runtime?

mmoskal commented 1 year ago

I think for now just use Array.includes. We are unlikely to add anything faster anytime soon