Skip to content

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

About

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

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors 3

  •  
  •  
  •