Skip to main content
Module

x/deno2node/src/deps.deno.ts>BindingElement#getPropertyNameNodeOrThrow

Compile your Deno project to run on Node.js.
Go to Latest
method BindingElement.prototype.getPropertyNameNodeOrThrow
import { BindingElement } from "https://deno.land/x/deno2node@v1.11.0/src/deps.deno.ts";

Gets binding element's property name node or throws if not found.

For example in const { a: b } = { a: 5 }, a would be the property name.

Parameters

optional
message: string | (() => string)