No, there is no way. Functions detached from objects lose the original context. And destructing in JavaScript has no syntax to do something with extracted values on the fly.
More Related Contents:
- Destructuring in Node.JS
- Curly brackets (braces) in Node.js ‘require’ statement
- Node JS / V8 destructuring bug?
- Call async/await functions in parallel
- Node.js plans to support import/export ES6 (ECMAScript 2015) modules
- Is it possible to destructure onto an existing object? (Javascript ES6)
- ES6/ES2015 object destructuring and changing target variable
- What is “export default” in JavaScript?
- Arrow Functions and This [duplicate]
- How to destructure object properties with key names that are invalid variable names?
- Javascript ES6 TypeError: Class constructor Client cannot be invoked without ‘new’
- Destructuring and rename property
- Why do I need to await an async function when it is not supposedly returning a Promise?
- How to create an instance of a subclass from the super class?
- “This” within es6 class method [duplicate]
- ES6 destructuring object assignment function parameter default value
- What is the difference between const and const {} in JavaScript
- How to publish a module written in ES6 to NPM?
- What is the ‘global’ object in NodeJS
- Difference between import X and import * as X in node.js (ES6 / Babel)?
- Using ‘let’ as a variable name is not throwing any errors in google v8
- ES2015 “import” not working in node v6.0.0 with with –harmony_modules option
- What does “this” mean in a nodejs module?
- “unexpected token import” in Nodejs5 and babel?
- Where argument of first next() call goes? [duplicate]
- JavaScript asynchronous programming: promises vs generators
- How to add mixins to ES6 javascript classes?
- using await on global scope without async keyword
- object destructuring: how to use intermediate nested property
- ESLint: “error Parsing error: The keyword ‘const’ is reserved”