90
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
Output:
Core Java, RDBMS, C, Python, R, C++
Example 2
Output:
1,2,3,6,7,8
Next TopicJavaScript Symbol