Class: LaxUndefined
An Undefined type that evaluates to an empty string or 0,
and can be indexed and iterated over without error.
Extends
Constructors
new LaxUndefined()
new LaxUndefined(
name,object?,hint?):LaxUndefined
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?
readonlyoptionalhint:string
Optionally override the default "undefined" message.
Inherited from
Defined in
name
readonlyname:string
The name of the undefined variable.
Inherited from
Defined in
object?
readonlyoptionalobject:unknown
The target object which does not have a property with the given name.
Inherited from
Defined in
Accessors
first
getfirst():this
Returns
this
Defined in
last
getlast():this
Returns
this
Defined in
size
getsize():this
Returns
this
Defined in
Methods
[iterator]()
[iterator]():
Iterator<unknown,any,undefined>
Returns
Iterator<unknown, any, undefined>
Defined in
[liquidDispatchSync]()
[liquidDispatchSync]():
LaxUndefined
Returns
Defined in
[liquidDispatch]()
[liquidDispatch]():
Promise<LaxUndefined>
Returns
Promise<LaxUndefined>
Defined in
[toPrimitive]()
[toPrimitive](
hint):null|0|""
Parameters
• hint: string
Returns
null | 0 | ""
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():
string
Returns the primitive value of the specified object.
Returns
string
Defined in
from()
staticfrom(name):LaxUndefined
Parameters
• name: string