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

Chrome48
SafariYes
Firefox48
OperaYes

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





Latest Courses