has-object-spread

1.0.0 • Public • Published

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

/has-object-spread/

    Package Sidebar

    Install

    npm i has-object-spread

    Weekly Downloads

    48

    Version

    1.0.0

    License

    Apache-2.0

    Last publish

    Collaborators

    • goto-bus-stop
    • ljharb