Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TS] Support ArrayLike in batch function and loadMany #214

Merged
merged 4 commits into from
Nov 13, 2019
Merged

Conversation

leebyron
Copy link
Contributor

This incorporates the change in #181 and the suggestion in #185 to support the ArrayLike interface in batch functions and the loadMany method. Doing so required changing Array.isArray to an isArrayLike function and removing the use of keys.map in favor of a simple for loop.

Fixes #185
Fixes #181
Fixes #165

ckknight and others added 4 commits April 17, 2019 15:53
The runtime code does not alter the Arrays in question, and it is good form to prefer `ReadonlyArray<T>` over `Array<T>` (aka `T[]`) in the input position when one can.
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.

ReadonlyArray
2 participants