has-object-spread
check if the environment supports { ...a } spread syntax
Install
npm install has-object-spreadUsage
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-spreadvar 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.