-
-
Notifications
You must be signed in to change notification settings - Fork 934
docs: refactor example to use array PRNG (issue #8227) #8233
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
docs: refactor example to use array PRNG (issue #8227) #8233
Conversation
Updates the example for `someByRight` to use
`@stdlib/random/array/randu` for creating the example array.
This change addresses a `no-new-array` linting error and improves the
example's conciseness by replacing a `for` loop with a direct
function call.
The refactoring has been applied to both the runnable example
(`examples/index.js`) and the example included in the package
`README.md`. A `no-redeclare` directive has been added to the
`README.md` to resolve a linter error caused by multiple example
blocks declaring the same variable name.
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: passed
- task: lint_package_json
status: na
- task: lint_repl_help
status: na
- task: lint_javascript_src
status: na
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: passed
- task: lint_javascript_tests
status: na
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: na
- task: lint_license_headers
status: passed
---
|
👋 Hi there! 👋 And thank you for opening your first pull request! We will review it shortly. 🏃 💨 Getting Started
Next Steps
Running Tests LocallyYou can use # Run tests for all packages in the math namespace:
make test TESTS_FILTER=".*/@stdlib/math/.*"
# Run benchmarks for a specific package:
make benchmark BENCHMARKS_FILTER=".*/@stdlib/math/base/special/sin/.*"If you haven't heard back from us within two weeks, please ping us by tagging the "reviewers" team in a comment on this PR. If you have any further questions while waiting for a response, please join our Gitter channel to chat with project maintainers and other community members. We appreciate your contribution! Documentation Links |
Coverage Report
The above coverage report was generated for the changes in this PR. |
Signed-off-by: Athan <[email protected]>
Signed-off-by: Athan <[email protected]>
Description
Updates the example for
someByRightto use@stdlib/random/array/randufor creating the example array.This change addresses a
no-new-arraylinting error and improves the example's conciseness by replacing aforloop with a direct function call, as recommended by project maintainers.The refactoring has been applied to both the runnable example (
examples/index.js) and the example included in the packageREADME.md. Ano-redeclaredirective has been added to theREADME.mdto resolve a linter error caused by multiple example blocks declaring the same variable name.Related Issues
This pull request:
Questions
No.
Other
No.
Checklist