I just found this bit of code within a .js file which is online, live and functional:
if (p.length > 0) { l() ...try { I = $.parseJSON(k.getData()); /*and so on until*/ } catch { /*more code*/ }
I have never seen three dots as a code element before (I double-checked there weren't quotes anywhere around), but this seems to work: there is no error log in the console. What exactly does this syntax achieve?
Just for completeness, ES6 will likely have "..." in it, for "rest" parameters (a replacement for using arguments
):
function g(i, j, ...r)
But that is not what this code is doing.
http://espadrine.github.io/New-In-A-Spec/es6/
Credits to Tim Goodman: Firebug truncated the js file for some reason and randomly inserted "..." instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With