Arrays get all the love, but that shouldn't stop #developers from using #JavaScript's higher-order functions to iterate over plain objects.
Four Object constructor methods for your toolbox, including fromEntries (introduced in ES10) 👇
Next.js (with universal/isomorphic rendering) by @zeithq, is hands-down the most underrated framework in the #javascript / @reactjs community today.
And as a result, businesses are at a disadvantage: https://t.co/l7zOgEeSxF
@Junyan_replica@slightlyice With this particular example, you're absolutely right!
@rauschma has a great article with additional details and tips: https://t.co/dysr4hbYTy
Need a duplicate-free version of an array in JavaScript?
The Set object is a built-in data structure that does not allow for duplicate values.
Use the Set constructor to transform an array into a set. Use the spread operator to transform a set into an array.
@shreshthmohan@dhh@patio11@kentcdodds@DavidKPiano @ChrisFerdinandi You don't need to learn another language to learn about data structures and algorithms! To get started, check out https://t.co/G4SgDDFW6s
🤫 Did you know that Google has a secret code challenge for software engineers?
📬 Invites are sent via Google search if algorithms determine (based on your search history) that Google should be pursuing you as a potential hire.
3 #HTML input attributes that can enhance the user experience:
✅ inputmode: Which virtual keyboard to display.
✅ autocomplete: Completion type, including new or current password, credit card number, one-time code, etc.
✅ spellcheck: Disable for non-word text inputs.
📢 Ready to become a #VSCode power user?
👨💻 The most comprehensive video tutorial to date launches in December. Optimize your workflow, boost productivity, and master Visual Studio Code!
✅ Subscribe at https://t.co/D9gYZXc5Oo for special discount! #code#programming#developer
PSA: The latest #JavaScript release is ECMAScript 2019, the 10th Edition (more commonly referred to as ES10).
A new edition has been released every year since ECMAScript 2015 (ES6). Fortunately for all of us trying to stay relevant, these subsequent releases are much smaller!
Arrays get all the love, but that shouldn't stop #developers from using #JavaScript's higher-order functions to iterate over plain objects.
Four Object constructor methods for your toolbox, including fromEntries (introduced in ES10) 👇
PSA: The latest #JavaScript release is ECMAScript 2019, the 10th Edition (more commonly referred to as ES10).
A new edition has been released every year since ECMAScript 2015 (ES6). Fortunately for all of us trying to stay relevant, these subsequent releases are much smaller!
@yasyaindr If you tried to do this with map(), you would end up with nested arrays: [[1, 2], [3, 4]]. You would then need to use flat() on that result to get [1, 2, 3, 4]. flatMap() is a more efficient way to handle both of those operations at once.