Wrapper
PackagesTwitterGitHub
v1.0.x
v1.0.x
  • Introduction
  • ❤ Benefits
    • Explanation
    • Designing
  • General concepts
  • Getting started
    • Skeleton
    • Installation
      • npm
    • Public API
    • Basic concepts
  • Wrap {}
    • Overview
    • Generic type variables
    • ★ Constructor
    • Accessors
      • closing
      • opening
      • text
      • [Symbol.toStringTag]
    • Properties
      • #closing
      • #opening
      • #text
    • Methods
      • Static
        • hasClosing()
        • hasOpening()
        • isWrap()
      • Instance
        • getClosing()
        • getOpening()
        • getText()
        • hasClosing()
        • hasOpening()
        • hasText()
        • isWrapped()
        • ★ replaceClosing()
        • ★ replaceOpening()
        • ★ replaceText()
        • toString()
        • valueOf()
    • Example usage
  • Wrapper {}
    • Overview
    • Generic type variables
    • Constructor
    • Accessors
      • [Symbol.toStringTag]
    • Methods
      • Static
        • define()
        • isWrapper()
        • replaceClosing()
        • replaceOpening()
        • unwrap()
      • Instance
        • isClosingIn()
        • isOpeningIn()
        • replaceClosingIn()
        • replaceOpeningIn()
        • removeWrapIn()
        • textReplaceClosing()
        • textReplaceOpening()
        • ⚠ textHasClosing()
        • ⚠ textHasOpening()
        • textUnwrap()
        • textWrap()
        • toArray()
        • toWrap()
        • unwrap()
        • unwrapText()
        • ★ wrap()
        • ★ wrapOn()
        • ★ wrapText()
    • Example usage
  • Type
    • Wrapped
  • Change log
    • Keep a changelog
    • CHANGELOG.md
    • v1.0.0
  • GIT
    • Commit
    • Semantic Versioning
  • License
    • MIT
  • Contact
    • ⋯ Chat
    • @ Email
  • Donate
    • ฿ Cryptocurrency
    • $ Fiat
Powered by GitBook
On this page
  • Wrap {}
  • Instance
  • Accessors
  • Properties
  • Methods
  • Static
  • Methods

Was this helpful?

  1. Wrap {}

Overview

PreviousBasic conceptsNextGeneric type variables

Last updated 3 years ago

Was this helpful?

Wrap {}

The object is based on the object and represents the of the wrapped by the and chars. It is designed to preserve the type names of the supplied opening, text, and closing chars by using the generic type variables.

Instance

Accessors

Properties

Methods

Static

Methods

The accessor gets the of the wrap by returning the property of the specified object.

The accessor gets the of the wrap by returning the property of the specified object.

The accessor gets the text of the by returning the property of a specified object.

The accessor of the changes the default tag String of the instance to the custom tag Wrap.

Private property of the closing chars of a generic type variable .

Private property of the opening chars of a generic type variable .

Private property of text of a generic type variable .

Gets the chars of the wrap by returning the property of a specified object.

Gets the chars of the wrap by returning the property of a specified object.

Gets the text of the wrap by returning the property of a specified object, without the and chars of the .

Checks whether the of a specified object has the chars or given chars.

Checks whether the of a specified object has the chars or given chars.

The method checks whether the of a specified object is defined, which means it's a of at least one char and optionally equal to the given .

The method checks whether the of the specified object is wrapped by the and chars of an instance or given and chars.

Returns the with replaced chars.

Returns the with replaced chars.

Returns the with replaced .

Gets the , the of a specified object.

Returns the , of a specified object.

Checks whether the has given chars at the end.

Checks whether the has given chars at the beginning.

The method checks whether the of any type is the instance of any or given and chars.

closing
get
closing
#closing
opening
get
opening
#opening
text
get
Wrap
#text
[Symbol.toStringTag]
get
toStringTag
Symbol
#closing
Closing
#opening
Opening
#text
Text
getClosing()
closing
#closing
getOpening()
opening
#opening
getText()
#text
opening
closing
Wrap
hasClosing()
primitive value
closing
closing
hasOpening()
primitive value
opening
opening
hasText()
text
Wrap
string
text
isWrapped()
primitive value
opening
closing
opening
closing
★ replaceClosing()
primitive value
closing
★ replaceOpening()
primitive value
opening
★ replaceText()
primitive value
text
toString()
wrap
primitive value
Wrap
valueOf()
wrap
primitive value
Wrap
hasClosing()
text
closing
hasOpening()
text
opening
isWrap()
value
Wrap
opening
closing
Wrap
String
immutable
primitive value
text
opening
closing
String - JavaScript | MDN
Documentation - Template Literal Typestypescriptlang
Logo
Page cover image
Logo