Skip to content

check if the environment supports { ...a } spread syntax

License

Notifications You must be signed in to change notification settings

inspect-js/has-object-spread

has-object-spread

check if the environment supports { ...a } spread syntax

npm travis

Install

npm install has-object-spread

Usage

var hasObjectSpread = require('has-object-spread')

if (hasObjectSpread()) {
	clone = Function('object', '({ ...object })')
}

License

Apache-2.0