[英]How do I reference the index of an array without knowing what it is in Javascript?
[英]How do I delete a nested array without knowing its index?
我不确定我是否理解正确,但为什么不使用Array.splice ?
const fireStore = getFirestore()
const keyResults = fireStore.FieldValue
keyResults.splice(1, 1)
fireStore
.collection("projects")
.doc(projectId)
.update({keyResults})
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.