Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Types passed to callback #16

Closed
waldemarhorwat opened this issue Oct 19, 2021 · 2 comments
Closed

Types passed to callback #16

waldemarhorwat opened this issue Oct 19, 2021 · 2 comments

Comments

@waldemarhorwat
Copy link

What is the type of the second parameter passed to the callback? Is it a String or a Number? The current implementation is passing neither — it's passing a mathematical value k there.

@ljharb
Copy link
Member

ljharb commented Oct 19, 2021

Array methods seem to mostly pass numbers, so it seems like the spec could wrap it in 𝔽().

@jridgewell
Copy link
Member

It's supposed to be a number like Array.p.map. It seems I missed the F() call, will fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants