Consider the following is not possible today: function foo ([a, b] = [1, 2]) {}
foo([2, 3]) While the the following is outside of function arguments: const arr = [1, 2] const [a, b] = arr Is there any reason for the current status quo?
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss