Check if the environment supports { ...a } spread syntax (evacuated from NSA/Microsoft Github)
Renée Kooi 73676287c6 1.0.0 | %!s(int64=6) %!d(string=hai) anos | |
---|---|---|
.gitignore | %!s(int64=6) %!d(string=hai) anos | |
.travis.yml | %!s(int64=6) %!d(string=hai) anos | |
CHANGELOG.md | %!s(int64=6) %!d(string=hai) anos | |
LICENSE.md | %!s(int64=6) %!d(string=hai) anos | |
README.md | %!s(int64=6) %!d(string=hai) anos | |
index.js | %!s(int64=6) %!d(string=hai) anos | |
package.json | %!s(int64=6) %!d(string=hai) anos | |
test.js | %!s(int64=6) %!d(string=hai) anos |
check if the environment supports { ...a }
spread syntax
npm install has-object-spread
var hasObjectSpread = require('has-object-spread')
if (hasObjectSpread()) {
clone = Function('object', '({ ...object })')
}