#JavaScript tip:
clear array by
「ar.splice(0)」
better than 「ar=[]」
because the latter assingns a new value.
Is a problem if the variable is a constant.
JS: Array.prototype.splice
http://xahlee.info/js/js_array_splice.html
Conversation
Notices
-
∑ XahLee (xahlee@noagendasocial.com)'s status on Saturday, 13-Jan-2018 20:50:34 EST ∑ XahLee