Wrap

The Wrap object represents the immutablearrow-up-right wrap of the opening and closing. It is designed to preserve the names of the opening and closing.

Instance accessors

Wrap.prototype.
Decription

The getarrow-up-right accessor gets the closing of the wrap by returning the #closing property of the specified object.

The getarrow-up-right accessor gets the opening of the wrap by returning the #opening property of the specified object.

The getarrow-up-right accessor gets the wrap consisting of the opening and closing.

The getarrow-up-right accessor gets the wrap consisting of the opening and closing.

The getarrow-up-right accessor, with the help of toStringTagarrow-up-right of Symbol, changes the default object tag to wrap for an instance of the Wrap.

Static methods

Wrap.
Description

The method checks if the value of any type is the Wrap instance of any or given opening and closing.

The static "tag" method builds the wrap of a stringarrow-up-right type on the template. With the added string before the expressions, it returns a wrapped string.

Instance methods

Wrap.prototype.
Description

Gets the closing of the wrap by returning the #closing property of the specified object.

Gets the opening of the wrap by returning the #opening property of the specified object.

Gets the wrap, primitive value consists of the opening and closing.

Returns the wrap, primitive value of the specified Wrap object.

Last updated