Socket
Socket
Sign inDemoInstall

@babel/plugin-proposal-object-rest-spread

Package Overview
Dependencies
56
Maintainers
4
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

@babel/plugin-proposal-object-rest-spread

Compile object rest and spread to ES5

    7.20.7latest
    GitHub
    npm

Version published
Maintainers
4
Weekly downloads
16,636,493
increased by1.77%

Weekly downloads

Package description

What is @babel/plugin-proposal-object-rest-spread?

The @babel/plugin-proposal-object-rest-spread package allows developers to use the object rest and spread properties syntax in their JavaScript code. This syntax is part of the ECMAScript proposal and enables more concise and readable code when copying properties from one object to another or collecting the remaining properties of an object after certain properties have been extracted.

What are @babel/plugin-proposal-object-rest-spread's main functionalities?

Object Spread

Allows an object's own enumerable properties to be copied into a new object. This is useful for creating a new object with the same properties as an existing object or for combining multiple objects.

{ ...source }

Object Rest

Enables extracting properties from objects and binding the remaining properties to a new object. This is useful for omitting certain properties from an object and keeping the rest.

const { a, b, ...rest } = source;

Other packages similar to @babel/plugin-proposal-object-rest-spread

Changelog

Source

v7.20.7 (2022-12-22)

:eyeglasses: Spec Compliance
  • babel-helper-member-expression-to-functions, babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes
    • #15223 fix: Deleting super property should throw (@SuperSodaSea)
  • babel-helpers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes, babel-plugin-transform-object-super
:bug: Bug Fix
  • babel-parser, babel-plugin-transform-typescript
  • babel-traverse
  • babel-plugin-transform-typescript, babel-traverse
  • babel-plugin-transform-block-scoping
  • babel-plugin-proposal-async-generator-functions, babel-preset-env
  • babel-generator, babel-plugin-proposal-optional-chaining
  • babel-plugin-transform-react-jsx, babel-types
  • babel-core, babel-helpers, babel-plugin-transform-computed-properties, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
  • babel-helper-member-expression-to-functions, babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes
  • babel-generator
:nail_care: Polish
  • babel-plugin-transform-block-scoping, babel-traverse
:house: Internal
  • babel-helper-define-map, babel-plugin-transform-property-mutators
  • babel-core, babel-plugin-proposal-class-properties, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-destructuring, babel-plugin-transform-parameters, babel-plugin-transform-regenerator, babel-plugin-transform-runtime, babel-preset-env, babel-traverse
:running_woman: Performance

Readme

Source

@babel/plugin-proposal-object-rest-spread

Compile object rest and spread to ES5

See our website @babel/plugin-proposal-object-rest-spread for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-proposal-object-rest-spread

or using yarn:

yarn add @babel/plugin-proposal-object-rest-spread --dev

Keywords

FAQs

Last updated on 22 Dec 2022

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc