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

Make loop in individual method #9

Closed
miladezzat opened this issue Feb 27, 2021 · 1 comment
Closed

Make loop in individual method #9

miladezzat opened this issue Feb 27, 2021 · 1 comment
Labels

Comments

@miladezzat
Copy link
Contributor

miladezzat commented Feb 27, 2021

Problem

use loop inside constructor makes it not readable

Solution

create new method insertMany for inserting iterable elements to the array

@khaledosama999
Copy link
Owner

I don't mind it but insertArray is not the right name, I think insertMany is more accurate, You are more than welcome to make a PR for it

miladezzat added a commit to miladezzat/binary-heap.js that referenced this issue Feb 27, 2021
miladezzat added a commit to miladezzat/binary-heap.js that referenced this issue Feb 27, 2021
miladezzat added a commit to miladezzat/binary-heap.js that referenced this issue Feb 27, 2021
miladezzat added a commit to miladezzat/binary-heap.js that referenced this issue Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants