Command
Where can I find the documentation regarding the left side of the equation below the JavaScript code:
var [a, b, c] = "10-11-12".split('-'); Result: a = 10 b = 11 c = 12 // Note: this is used in Google Apps Script
Thanks!
This is called Destruction Assignment.
NOTE is only available if your runtime is> = JavaScript 1.7
The Mozilla Developer Network has excellent split documentation: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/split
Source: https://habr.com/ru/post/1447647/More articles:Is it possible to use memset to populate the std :: complex s array? - c ++How to implement Android tab menu without obsolete taboo - javaAlternative TabAcitivity - androidInstall pyQT on OSX for python 3.2 - python-3.xWhat do gcc auto-vectorize messages mean? - c ++How to constantly change the language? - c #Google Maps API v3 in PhoneGap: markers do not draw correctly after moving - androidMPI Alltoallv or better individual Send and Recv? (View) - performanceStatic plant methods - javaHow to get the value “General → Date and time → Install automatically” programmatically in iphone? - iosAll Articles