Class: FalsyStrictUndefined
An Undefined type that will evaluate to false
in a boolean
expression and throw an error when iterated, output or when accessing
its properties.
Extends
Constructors
new FalsyStrictUndefined()
new FalsyStrictUndefined(
name
,object
?,hint
?):FalsyStrictUndefined
Create a new Undefined
object.
Parameters
• name: string
The name of the undefined variable.
• object?: unknown
The target object which does not have a property with the given name.
• hint?: string
Optionally override the default "undefined" message.
Returns
Inherited from
Defined in
Properties
hint?
readonly
optional
hint:string
Optionally override the default "undefined" message.
Inherited from
Defined in
name
readonly
name:string
The name of the undefined variable.
Inherited from
Defined in
object?
readonly
optional
object:unknown
The target object which does not have a property with the given name.
Inherited from
Defined in
Accessors
first
get
first():void
Returns
void
Defined in
last
get
last():void
Returns
void
Defined in
size
get
size():void
Returns
void
Defined in
Methods
[iterator]()
[iterator]():
Iterator
<unknown
,any
,undefined
>
Returns
Iterator
<unknown
, any
, undefined
>
Defined in
[liquidDispatchSync]()
[liquidDispatchSync]():
void
Returns
void
Defined in
[liquidDispatch]()
[liquidDispatch]():
Promise
<void
>
Returns
Promise
<void
>
Defined in
poke()
poke():
void
Prompt the undefined type to throw an error.
Returns
void
Overrides
Defined in
toString()
toString():
string
Returns
string
Overrides
Defined in
valueOf()
valueOf():
void
Returns the primitive value of the specified object.
Returns
void
Defined in
from()
static
from(name
):FalsyStrictUndefined
Parameters
• name: string