-
Notifications
You must be signed in to change notification settings - Fork 7k
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
keyBy not support index #5795
Comments
You can try with this for the time being. Example const array1 = ['a', 'b'];
const array2 = [
{ 'dir': 'left', 'code': 97 },
{ 'dir': 'right', 'code': 100 }
];
console.log( keyBy(array1, _ => array1.indexOf(_)) );
console.log( keyBy(array2, _ => array2.indexOf(_)) ); Actual Result
|
Raised a pull request (#5798). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
VERSION 4.17.21
Hope to support the index of the iterator
Example
Expected Result
Actual Result
The text was updated successfully, but these errors were encountered: