Detect whether the environment supports native Symbols. This package provides a simple, reliable way to check if the JavaScript environment includes built-in Symbol support as specified in ECMAScript 2015 (ES6). It's essential for libraries and applications that need to conditionally use Symbol features, ensuring compatibility across various browsers and Node.js versions. Use has-symbols to avoid errors in environments that lack Symbol support.
The has-symbols npm package has infrequent releases. Version 1.0.0 was released in September 2016, followed by 1.0.1 in November 2019, 1.0.2 in February 2021, 1.0.3 in March 2022 and 1.1.0 in December 2024. There have been no releases since December 2024, and no releases in 2017, 2018, 2020, 2023, or so far in 2025.
The npm package "has-symbols" experienced exponential growth throughout 2024 and 2025. Downloads ranged from 8.6 million in February 2024 to almost 361 million in July 2025. August 2025 downloads are around 300 million, but the month isn't complete yet.