No, no. My problem is: I want to access the last element of an array and assign it to the element of same index in another array (so I can't use $), and I checked that the source array has at least one element.

The questions are:
- Why is it considered dangerous to use the expression a.length-1 ? - What else is proposed to implement the desired effect without warning?

Reply via email to