const funk = (foo,bar,baz) => console.log({foo,bar,baz});
and then
funk(1,2,3);
would put
{foo: 1, bar: 2, baz: 3}
in the console, and he could make sure foo and bar and baz were in the right places in the argument list.
Thought that was pretty clever, an easy cut and paste way of adding human readable labels from "mere" variable names via the es6 sweetening.
No comments:
Post a Comment