[英]What is the ClojureScript analogue of delete from JavaScript?
I'm seeing lots of code using the pattern: 我正在使用该模式看到很多代码:
delete b[d];
Now I'm translating this to: 现在,我将其翻译为:
(aset b d nil)
Is that appropriate - or am I losing some crucial data? 那合适吗?还是我丢失了一些关键数据?
My question is: **What is the ClojureScript analogue of delete
from JavaScript? 我的问题是:**从JavaScript中
delete
的ClojureScript类似什么? ** **
根据http://cljs.info/cheatsheet/,它是js-delete
(js-delete b d)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.