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?
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():this
Returns
this
Defined in
last
get
last():this
Returns
this
Defined in
size
get
size():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()
static
from(name
):LaxUndefined
Parameters
• name: string