-
-
Notifications
You must be signed in to change notification settings - Fork 949
feat: add assert/has-to-primitive-symbol-support
#8469
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
Merged
kgryte
merged 13 commits into
stdlib-js:develop
from
kaushal-kumar-it:add-has-to-primitive-symbol-support
Nov 9, 2025
Merged
feat: add assert/has-to-primitive-symbol-support
#8469
kgryte
merged 13 commits into
stdlib-js:develop
from
kaushal-kumar-it:add-has-to-primitive-symbol-support
Nov 9, 2025
Conversation
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
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
assert/has-to-primitive-symbol-support
kgryte
reviewed
Nov 9, 2025
lib/node_modules/@stdlib/assert/has-to-primitive-symbol-support/benchmark/benchmark.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Athan <kgryte@gmail.com>
kgryte
reviewed
Nov 9, 2025
lib/node_modules/@stdlib/assert/has-to-primitive-symbol-support/docs/repl.txt
Outdated
Show resolved
Hide resolved
Signed-off-by: Athan <kgryte@gmail.com>
kgryte
reviewed
Nov 9, 2025
lib/node_modules/@stdlib/assert/has-to-primitive-symbol-support/docs/types/index.d.ts
Outdated
Show resolved
Hide resolved
assert/has-to-primitive-symbol-support
kgryte
reviewed
Nov 9, 2025
lib/node_modules/@stdlib/assert/has-to-primitive-symbol-support/lib/index.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Athan <kgryte@gmail.com>
kgryte
reviewed
Nov 9, 2025
lib/node_modules/@stdlib/assert/has-to-primitive-symbol-support/test/test.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Athan <kgryte@gmail.com>
assert/has-to-primitive-symbol-support
Signed-off-by: Athan <kgryte@gmail.com>
kgryte
reviewed
Nov 9, 2025
lib/node_modules/@stdlib/assert/has-to-primitive-symbol-support/docs/repl.txt
Outdated
Show resolved
Hide resolved
Signed-off-by: Athan <kgryte@gmail.com>
kgryte
reviewed
Nov 9, 2025
lib/node_modules/@stdlib/assert/has-to-primitive-symbol-support/docs/repl.txt
Outdated
Show resolved
Hide resolved
Signed-off-by: Athan <kgryte@gmail.com>
kgryte
approved these changes
Nov 9, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature
Issue or pull request for adding a new feature.
Good First PR
A pull request resolving a Good First Issue.
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.
Resolves #8468.
Description
This pull request adds a new package: @stdlib/assert/has-to-primitive-symbol-support
The package provides a utility function to determine whether the current JavaScript environment supports the well-known symbol
Symbol.toPrimitive.This addition completes the set of symbol support detection utilities in
@stdlib/assertand follows the same structure and conventions as existing packages such as:Related Issues
This pull request has the following related issues:
assert/has-to-primitive-symbol-support#8468Questions
No.
Other
assert/has-*symbol-support packages for consistency.make lint,make test,make examples, andmake benchmark.Checklist
lib/node_modules/@stdlib/assert/has-to-primitive-symbol-support/lib.test/test.js.examples/index.js.benchmark/benchmark.js.README.md.AI Assistance
@stdlib-js/reviewers