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 })')
}
check if the environment supports { ...a } spread syntax
check if the environment supports { ...a } spread syntax
npm install has-object-spread
var hasObjectSpread = require('has-object-spread')
if (hasObjectSpread()) {
clone = Function('object', '({ ...object })')
}
All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
Initial release.