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

Renée Kooi 73676287c6 1.0.0 6 年之前
.gitignore ad626b4cf6 init 6 年之前
.travis.yml ad626b4cf6 init 6 年之前
CHANGELOG.md 73676287c6 1.0.0 6 年之前
LICENSE.md ad626b4cf6 init 6 年之前
README.md ad626b4cf6 init 6 年之前
index.js ad626b4cf6 init 6 年之前
package.json 73676287c6 1.0.0 6 年之前
test.js ad626b4cf6 init 6 年之前

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