
Security News
Google’s OSV Fix Just Added 500+ New Advisories — All Thanks to One Small Policy Change
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
has-symbols
Advanced tools
Determine if the JS environment has Symbol support. Supports spec, or shams.
Determine if the JS environment has Symbol support. Supports spec, or shams.
var hasSymbols = require('has-symbols');
hasSymbols() === true; // if the environment has native Symbol support. Not polyfillable, not forgeable.
var hasSymbolsKinda = require('has-symbols/shams');
hasSymbolsKinda() === true; // if the environment has a Symbol sham that mostly follows the spec.
Simply clone the repo, npm install
, and run npm test
v1.1.0 - 2024-12-02
548c0bf
bec56bb
npmignore
to autogenerate an npmignore file ac81032
6469cbf
9c9d4d0
eslint
, @ljharb/eslint-config
, aud
, tape
adb5887
@ljharb/eslint-config
, aud
, tape
13ec198
auto-changelog
, core-js
, tape
941be52
aud
with npm audit
74f49e9
npmignore
9c0ac04
52337a5
The es-abstract package provides utility functions for ECMAScript language abstract operations. It includes checks for symbol support similar to has-symbols but goes beyond that by offering a wide range of ECMAScript compliance-related utilities.
The is-symbol package is used to check if a value is an ES6 Symbol or not. While has-symbols checks for the existence of Symbol support in the environment, is-symbol is used to verify if a given value is of the Symbol type.
FAQs
Determine if the JS environment has Symbol support. Supports spec, or shams.
The npm package has-symbols receives a total of 52,457,595 weekly downloads. As such, has-symbols popularity was classified as popular.
We found that has-symbols demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
Research
/Security News
175 malicious npm packages (26k+ downloads) used unpkg CDN to host redirect scripts for a credential-phishing campaign targeting 135+ organizations worldwide.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.