@stdlib/assert-has-is-concat-spreadable-symbol-support
v0.1.1
Published
Detect native Symbol.isConcatSpreadable support.
Readme
hasIsConcatSpreadableSymbolSupport
Detect native
Symbol.isConcatSpreadablesupport.
Installation
npm install @stdlib/assert-has-is-concat-spreadable-symbol-supportUsage
var hasIsConcatSpreadableSymbolSupport = require( '@stdlib/assert-has-is-concat-spreadable-symbol-support' );hasIsConcatSpreadableSymbolSupport()
Detects if a runtime environment supports Symbol.isConcatSpreadable.
var bool = hasIsConcatSpreadableSymbolSupport();
// returns <boolean>Examples
var hasIsConcatSpreadableSymbolSupport = require( '@stdlib/assert-has-is-concat-spreadable-symbol-support' );
var bool = hasIsConcatSpreadableSymbolSupport();
if ( bool ) {
console.log( 'Environment has Symbol.isConcatSpreadable support.' );
} else {
console.log( 'Environment lacks Symbol.isConcatSpreadable support.' );
}See Also
@stdlib/assert-has-is-concat-spreadable-symbol-support-cli: CLI package for use as a command-line utility.
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2026. The Stdlib Authors.
