i use static methods to keep semantic against the implementation, check this https://medium.com…
Andrés Mijares
1

This code:

Object.assign({}, {
email: “somemockemail@email.com”,
repository: “http://github.com/username"
})

Accomplishes the same thing that this code:

{
email: “somemockemail@email.com”,
repository: “http://github.com/username"
}

Why would you ever write the first?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.