has-object-spread
v1.0.0 detect es6 object-spread
has-object-spread
check if the environment supports { ...a }
spread syntax
Install
npm install has-object-spread
Usage
var hasObjectSpread = require('has-object-spread')
if (hasObjectSpread()) {
clone = Function('object', '({ ...object })')
}
License
npm i has-object-spread
Metadata
- Apache-2.0
- Whatever
- Renée Kooi
- released 1/14/2018