Repository navigation
docs: improve doctests for ndarray instances in ndarray/every - #14179
Merged
kgryte merged 1 commit intoAug 12, 2026
Merged
Conversation
Replaces verbose .get() and ndarray2array element extraction in documentation with nested ndarray instance notation as described in RFC stdlib-js#9329. Signed-off-by: Aryan Sharma <aryansharma24106@gmail.com>
AryanSharma48
force-pushed
the
docs/ndarray-every-doctests
branch
from
August 11, 2026 21:44
214eb2a to
4dce3f3
Compare
3 tasks done
Contributor
Coverage ReportNo coverage information available. |
ndarray/every
Member
|
Thank you for your contribution and congratulations on your first PR! |
Contributor
Author
|
Thank you @kgryte! Happy to contribute. Looking forward to opening more PRs! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Progresses #9329.
Description
This pull request:
@stdlib/ndarray/everyto replace verbose.get()andndarray2arraydecomposition logic with the more concise nested ndarray instance notation (e.g.,// returns <ndarray>[ ... ]).ndarray2arrayimport wherever it was only being used for illustrative doctest values.Related Issues
This pull request has the following related issues:
Questions
No.
Other
No.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
I used an AI coding assistant to help locate the specific documentation files within
@stdlib/ndarray/everyand apply the formatting updates to the// returnsannotations. However, I manually reviewed all the modifications to ensure strict adherence to the RFC, specifically making sure no executableconsole.log()examples were altered.@stdlib-js/reviewers