We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would like to propose changing the Rest Parameter example function.
A function like underscore's pick is a perfect example in my opinion
function pick(object, ...keys){ let result = Object.create(null); for(let i = 0; i < keys.length; i++){ let key = keys[i]; result[key] = object[key]; } return results }
I think current example is not demonstrating a very good use case of the feature.
The text was updated successfully, but these errors were encountered:
function pick(object, ...keys) { let result = Object.create(null); for (let key of keys) { result[key] = object[key]; } return result; }
Sorry, something went wrong.
I like it, thanks for the suggestion.
9621022
No branches or pull requests
I would like to propose changing the Rest Parameter example function.
A function like underscore's pick is a perfect example in my opinion
I think current example is not demonstrating a very good use case of the feature.
The text was updated successfully, but these errors were encountered: