šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

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

Package Overview
Dependencies
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Allow parsing of object rest/spread

7.8.3
latest
Source
npm
Version published
Weekly downloads
33M
6.79%
Maintainers
6
Weekly downloads
Ā 
Created

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

The @babel/plugin-syntax-object-rest-spread package allows Babel to parse and handle the object rest/spread syntax. This syntax enables the extraction of properties from objects and the creation of new objects with certain properties of an existing object. It is important to note that this plugin only enables the syntax and does not transform it; the actual transformation is handled by another plugin like @babel/plugin-proposal-object-rest-spread.

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

Object Rest Properties

Allows extracting the remaining own enumerable property keys that are not already picked off by the destructuring pattern.

{ ...rest } = object

Object Spread Properties

Enables the creation of a new object by copying own enumerable properties from a provided object onto the new object.

{ ...object }

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

Keywords

babel-plugin

FAQs

Package last updated on 13 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts