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 ad626b4cf6 init %!s(int64=6) %!d(string=hai) anos
.travis.yml ad626b4cf6 init %!s(int64=6) %!d(string=hai) anos
CHANGELOG.md 73676287c6 1.0.0 %!s(int64=6) %!d(string=hai) anos
LICENSE.md ad626b4cf6 init %!s(int64=6) %!d(string=hai) anos
README.md ad626b4cf6 init %!s(int64=6) %!d(string=hai) anos
index.js ad626b4cf6 init %!s(int64=6) %!d(string=hai) anos
package.json 73676287c6 1.0.0 %!s(int64=6) %!d(string=hai) anos
test.js ad626b4cf6 init %!s(int64=6) %!d(string=hai) anos

README.md

has-object-spread

check if the environment supports { ...a } spread syntax

npm travis standard

Install

npm install has-object-spread

Usage

var hasObjectSpread = require('has-object-spread')

if (hasObjectSpread()) {
  clone = Function('object', '({ ...object })')
}

License

Apache-2.0