Check if the environment supports { ...a } spread syntax (evacuated from NSA/Microsoft Github)

Renée Kooi 73676287c6 1.0.0 6 gadi atpakaļ
.gitignore ad626b4cf6 init 6 gadi atpakaļ
.travis.yml ad626b4cf6 init 6 gadi atpakaļ
CHANGELOG.md 73676287c6 1.0.0 6 gadi atpakaļ
LICENSE.md ad626b4cf6 init 6 gadi atpakaļ
README.md ad626b4cf6 init 6 gadi atpakaļ
index.js ad626b4cf6 init 6 gadi atpakaļ
package.json 73676287c6 1.0.0 6 gadi atpakaļ
test.js ad626b4cf6 init 6 gadi atpakaļ

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