check if the environment supports { ...a } spread syntax
{ ...a }
npm install has-object-spread
var hasObjectSpread = require('has-object-spread') if (hasObjectSpread()) { clone = Function('object', '({ ...object })') }
Apache-2.0