Javatpoint Logo
Javatpoint Logo

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




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA