With ES6 you can use this code :
removeDocument(doc){
this.documents.forEach( (item, index) => {
if(item === doc) this.documents.splice(index,1);
});
}
removeDocument(doc){
this.documents.forEach( (item, index) => {
if(item === doc) this.documents.splice(index,1);
});
}
https://ui.dev/react-router-url-parameters If you're reading this, you're probably familiar with the idea of function parameters. T...
Không có nhận xét nào:
Đăng nhận xét