Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ow man.. I saw the Object.assign example and thought i don't like it because it requires an extra polyfill. I can just use a spread and let babel handle it.

If anything it should be `var email = {...document.createElement('input'), type: 'email'}`

But that would result in `Object.assign({}, document.createElement('input'), { type: 'email' })`

Got 4 up votes though..



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: