-
Notifications
You must be signed in to change notification settings - Fork 60
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
Fix: result's index should be original list index #10
Conversation
This looks good, but I think that this can be accomplished in a simpler manner. |
yes, method you mentioned is better |
Will you be updating the PR, or should I get to work on this? |
I think i hava done, but not sure my PR update operation is correct |
It looks good, but when filling if(item !== false) {
normalizedData[i] = item;
} This is because when initializing an array with |
Alright, since this has been inactive for a while, I'll try implementing it. Thanks for the help! |
Set new Array(len) just to tell the compiler the initial size of array, to avoid memory copy in the dynamic expansion E.g:
|
Yeah, I know what |
@kingpixil |
when i try this example: http://moonjs.ga/examples/search/index.html
i tap 'catch' but result list is not what i want
because after pipeline, some item may be removed because of zero length, so the index in result is not the original list index
so we can record index map (if need) to fix this problem