Hmm, @BabelJS handles http://babeljs.io/repl/#?experimental=true&evaluate=true&loose=false&spec=false&playground=true&code=function%20needsDependencies(%0A%20%20car%20%20%20%3D%20new%20Car()%2C%0A%20%20tires%20%3D%20Tires.getInstance()%0A)%20%7B%0A%20%20%2F%2F%20use%20car%20%26%20tires%0A%7D%0A%0AneedsDependencies()%3B%0A%2F%2F%20or%0AneedsDependencies(mockCar)%3B … but wondering if it's actually legal #ES2015... Very lightweight DI :) @PascalPrecht #JSConfBP
@jareware Yes, default parameters are legal ES6/ES2015. @pascalprecht
-
-
@sebmck@PascalPrecht ANY expression, though? All the examples are pretty much scalars
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 