Home » JavaScript Symbol isConcatSpreadable Property

JavaScript Symbol isConcatSpreadable Property

by Online Tutorials Library

JavaScript Symbol.isConcatSpreadable Property

The JavaScript Symbol.isConcatSpreadable it is used to configure if an object should be flattened to its array elements.

NOTE: This property spreads the array to its elements when used for concatenation.

Syntax

Parameters

No parameters.

Return value

Concatenation Result.

Browser Support

Chrome 48
Safari Yes
Firefox 48
Opera Yes

Example 1

Test it Now

Output:

Core Java, RDBMS, C, Python, R, C++  

Example 2

Test it Now

Output:

1,2,3,6,7,8  

Next TopicJavaScript Symbol

You may also like