devicescript icon indicating copy to clipboard operation
devicescript copied to clipboard

Array js functions

Open pelikhan opened this issue 1 year ago • 3 comments

Finish Array object implementation.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array

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

pelikhan avatar Jun 24 '23 16:06 pelikhan

Hi @pelikhan I'm interested in adding the missing implementations

sh33dafi avatar Jun 29 '23 17:06 sh33dafi

Great!

  • impl location: https://github.com/microsoft/devicescript/blob/main/packages/core/src/array.ts
  • declarations: https://github.com/microsoft/devicescript/blob/main/packages/core/src/corelib.d.ts#L210
  • tests: https://github.com/microsoft/devicescript/blob/main/devs/run-tests/24arraymap.ts

Feel free to break down implemetation in several PRs so that it helps the review.

pelikhan avatar Jun 29 '23 18:06 pelikhan

Created a first PR https://github.com/microsoft/devicescript/pull/520

sh33dafi avatar Jun 30 '23 20:06 sh33dafi