1.0.0 • Published 6 years ago
has-object-spread v1.0.0
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
1.0.0
6 years ago