Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/windmill/node_modules/yaml/dist/nodes/YAMLSeq.d.ts>YAMLSeq#get

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
method YAMLSeq.prototype.get
import { YAMLSeq } from "https://deno.land/x/windmill@v1.320.3/node_modules/yaml/dist/nodes/YAMLSeq.d.ts";

Returns item at key, or undefined if not found. By default unwraps scalar values from their surrounding node; to disable set keepScalar to true (collections are always returned intact).

key must contain a representation of an integer for this to succeed. It may be wrapped in a Scalar.

Parameters

key: unknown
keepScalar: true

Returns

Scalar<T> | undefined

Parameters

key: unknown
optional
keepScalar: false

Returns

T | undefined

Parameters

key: unknown
optional
keepScalar: boolean

Returns

T | Scalar<T> | undefined