i use static methods to keep semantic against the implementation, check this…
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?