Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/source_map/lib/util.js>getArg

Port of mozilla / source-map to deno.
Latest
function getArg
import { getArg } from "https://deno.land/x/source_map@0.8.0-beta.1/lib/util.js";

This is a helper function for getting values from parameter/options objects.

Parameters

aArgs

The object we are extracting values from

aName

The name of the property we are getting.

aDefaultValue

An optional value to return if the property is missing from the object. If this is not specified and the property is missing, an error will be thrown.