The Symbol.isConcatSpreadable is a well-known symbol used to configure if a given object should be flattened to its array elements while using the Array.prototype.concat() method.
Here Array is the array object which are to be flattened to its array elements.
Parameters: This symbol does not accept any parameter.
Return value: This symbol does not return any value.
> Array [1, 2, 3, 4, 5, 6] > Array [1, 2, 3, Array [4, 5, 6]]
> Array [1, 2, 3, 4, 5, 6] > Array [1, 2, 3, 4, 5, 6]
- Google Chrome 48 and above
- Firefox 48 and above
- Edge 15 and above
- Opera 35 and above
- Apple Safari 10 and above