--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/bb0d81b1-310c-4657-8314-e24656e81962n%40googlegroups.com.
Array and newArray point to the same array.To copy to a new array
Hi there.I hope you all stay safe.The below photo is the example scripting to show what I would like to do.In my scriptings, I often want to call a variable in different ways and times that I put an array on at the very beginning of the script .As an example,I want to call "array" to output it on sheet A after using pop method (delete last element in an array).I also want to call "array" to output it on sheet B after using shift method (delete first element in an array) .I thought it could work as the scripting in the below photo but not actually.Would there be any better scripting?Appreciate your support in advance.--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsubs...@googlegroups.com.