
Markus Oberlehner @MaOberlehner
⚡️ Did you know you can use ES6 Object Destructuring to remove one or multiple properties from an Object? https://t.co/ko3r3Nq7jE
Markus Oberlehner @MaOberlehner
⚡️ Did you know you can use ES6 Object Destructuring to remove one or multiple properties from an Object? https://t.co/ko3r3Nq7jE
Samantha Ming @samantha_ming
Passing Arrays as Function Arguments ? If you want to pass an array into a variadic function. You can use ES6 Spread to turn that array into a list of arguments. Yay, so much cleaner and no useless null from the old apply way ? #100DaysOfCode #CodeNewbie #301DaysOfCode https://t.co/avaapSRQRB
R. Alex Anderson ? @ralex1993
??? Tip: awaiting is an execution-blocking operation, as in the rest of the function won't execute until the awaited promise is resolved. Run promises concurrently by awaiting references to the already executed promises! (You can also do this with Promise.all()) https://t.co/Vp1C6pOXkJ
Ryosuke @whoisryosuke
? Need to dynamically embed your @CodePen into your @gatsbyjs blog or #ReactJS app? Use #javascript's `createElement()` to insert the needed script to your HTML inside the blog post `componentDidMount()`: https://t.co/LHa5cqpukg #js #gatsbyjs #codepen https://t.co/NFFNHJ9CW5
Ryosuke @whoisryosuke
Need to make a query string (?name=Ryo&job=dev) with #Javascript? Pretty easy with #ES6: https://t.co/vc1mieM62Z https://t.co/1TOcFSdfyb
Jeff Brown @jeffbrowndev
Thank you @wesbos & @stolinski! Here's a neat little trick I learned from these guys on @syntaxfm. Usally, I'll use Array.reduce( ) as a quick way to sum up an array of values. It's also a great way to keep a tally on values, such as words in a paragraph. Something like this: https://t.co/azJUZOv14Y
Joe Dixon @_joedixon
Hot tip ? Thanks to @wesbos and @stolinski for this gem I picked up from @syntaxfm. If you ever need to loop over an object in #javascript, take a look at the Object.entries method. So much more readable and so much less gnarly. https://t.co/xdY0Eg40cR
Surma @DasSurma
?Did you know: ES2016 modules has the `import X from ...` statement. but there’s also the `export X from ...` statement. Very useful if you have a top-level “bundling” module that just re-exports bits and bobs from other smaller modules. https://t.co/yqVVcACHz1
Samantha Ming @samantha_ming
Skip Values in Destructuring ? You can use blanks to skip over unwanted values. This way you can avoid useless variable assignments for values you don’t want during destructuring ? #100DaysOfCode #CodeNewbie #301DaysOfCode https://t.co/dljom5lXNk
Samantha Ming @samantha_ming
Super simple to set Default Parameters with ES6 ? The old way was to use a ternary operator to assign the default value if it was undefined. With ES6, you can set the default value right inside the function parameters ? #100DaysOfCode #CodeNewbie https://t.co/hQLY8nDGpW
??????? ✨ @siwalik
? ES6 Object shorthands With Javascript ES6's object shorthands, you can write the key/value once if they have the same name! #100DaysOfCode #ES6 #javascript https://t.co/j71RrUGSQq
Marcel Pociot @marcelpociot
Quick Tip: Using arrow functions in ES6 is a nice way of having dynamic template strings. https://t.co/lh6jIgjv7m
Luke Jackson @lukejacksonn
8 immutable arrays operations you should know ?? #javascript #es6 https://t.co/DdheeX23Mt
Siddharth Kshetrapal @siddharthkp
TIL: setInterval takes a third argument which is passed to the function! so much cleaner: https://t.co/slPGjpHhwb
mitchell jamieson @__mitchjamieson
Slim down your urls using back ticks too. (if you can't resolve url's using one of these - https://t.co/oWXSihkU5g) thanks @jesseschutt! https://t.co/7W5GSMmT3l
mitchell jamieson @__mitchjamieson
Most times you don't need the whole response object. Use ES6 destructuring to clean it up. https://t.co/7UlymWiRIi
Casper Sørensen @RealMthrRussia
Tip for @phpstorm, @GraphQL and @apollographql - install the JS GraphQL plugin to get syntax highlighting in your string literal queries ???
David Walsh @davidwalshblog
Six Tiny But Awesome ES6 Features #JavaScript https://t.co/kEYXyt4kdw https://t.co/9aXPi1ZeTY
JavaScript Daily @JavaScriptDaily
A Spreadsheet in 25 Lines of ES6: https://t.co/zwxhsPuVAb https://t.co/UrPM5dXimN
Wes Bos @wesbos
? Pass values along your promise chain by resolving them with Promise.all() https://t.co/W4yolsidiq