Diary - 2018.10.23

github logo ・1 min read

Object Rest Property

A nice little tool to "split" objects into something new.

// it's me
const user = {
  id: 1,
  email: 'mario@mariobros.com',
  firstName: 'Mario',
  job: 'plumber',

// we want to get the user without its email (privacy!)
const { email, ...userWithoutEmail } = user;

console.log(email); // mario@mariobros.com
console.log(userWithoutEmail); // ​​​​​{ id: 1, firstName: 'Mario', job: 'plumber' }​​​​​
twitter logo DISCUSS
Classic DEV Post from Jun 18 '19

Discussing the launch of Libra, "A new global currency"

A thread to talk about the launch of Libra

miku86 profile image
Developer & Explorer with a passion for learning, coding, futurology and technology. - Compare yourself to who you were yesterday, not to who someone else is today.