It is destructuring, but contained within the parameters. The equivalent without the destructuring would be:
const func = o => {
var param1 = o.param1;
var param2 = o.param2;
//do stuff
}
More Related Contents:
- Understanding members of Symbol – function constructor
- Find list of strings that matches a pattern that start with a special character « and end with a special character »
- Unable to access React instance (this) inside event handler [duplicate]
- Javascript object literal: what exactly is {a, b, c}?
- ES6 Modules: Undefined onclick function after import
- Spread Syntax ES6
- Async function not returning value, but console.log() does: how to do? [duplicate]
- ES6 Object Destructuring Default Parameters
- What does three dots do in ReactJS [duplicate]
- ES6 Promise.all() error handle – Is .settle() needed? [duplicate]
- Why are ES6 classes not hoisted?
- Javascript ES6 cross-browser detection
- Filtering an array with a function that returns a promise
- How to find duplicate values in a JavaScript array of objects, and output only unique values?
- How do I make a “public static field” in an ES6 class?
- comparing ECMA6 sets for equality
- Mixins for ES6 classes, transpiled with babel
- Get list of duplicate objects in an array of objects
- What is the difference between importing a function expression or a function declaration from a ES6 module?
- destructuring falsy and null with default parameters
- What can we do with ES6 Generator that we cannot with for loop?
- How to namespace es6 classes (for React components)
- set withCredentials to the new ES6 built-in HTTP request API : Fetch
- Why will ES6 WeakMap’s not be enumerable?
- How does JavaScript import find the module without an extension?
- What is ‘global symbol registry’?
- Exporting functions with reactjs and babel
- object destructuring: how to use intermediate nested property
- Compare two Arrays with Objects and create new array with unmatched objects
- When is the body of a Promise constructor callback executed?