JavaScript Symbol.isConcatSpreadable PropertyThe 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.SyntaxParametersNo parameters. Return valueConcatenation Result. Browser Support
Example 1Test it NowOutput: Core Java, RDBMS, C, Python, R, C++ Example 2Test it NowOutput: 1,2,3,6,7,8
Next TopicJavaScript Symbol
|