angular [...XXX] What does this mean?

Asked 2 years ago, Updated 2 years ago, 87 views

It will be angular version 4.4.4, but

this.tableInfo.dataList=[...this.tableInfo.dataList]

Finding these logic, this.tableInfo.dataList becomes an array of classes.
I enclose [...XXX] for this element, but I don't know what it means.

If anyone knows, please let me know.
Thank you for your cooperation.

javascript angular4

2022-09-30 11:30

1 Answers

In ECMAScript 2015, the spread syntax is used to copy arrays.


2022-09-30 11:30

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.