Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

has-object-spread

goto-bus-stop357Apache-2.01.0.0

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

detect, es6, object-spread

readme

has-object-spread

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

npm travis standard

Install

npm install has-object-spread

Usage

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

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

License

Apache-2.0

changelog

has-object-spread change log

All notable changes to this project will be documented in this file.

This project adheres to Semantic Versioning.

1.0.0 / 2018-01-14

Initial release.