angular-package
TwitterGitHub
Wrapper
Wrapper
  • 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
  • More versions
Powered by GitBook
On this page

Was this helpful?

❤ Benefits

PreviousIntroductionNextExplanation

Last updated 3 years ago

Was this helpful?

Under the hood of some packages are , and below is a list containing some pros of using them and of important design benefits.

  • primitive value of .

  • A value is divided into private properties of .

  • A value type is built of generic type variables on the , which results in the exact return type rather than just a string.

  • The ability to get part of the primitive value of the exact return type.

  • Specific functionality objects with generic type variables(which preserves exact type) act as precise types.

  • The most important functionalities for a specific name.

  • General and object names.

All this above is in a minimal, simple to use, and ease-extendable form of objects.

Immutability

primitive value of .

Some methods return converted primitive value to a form of an object or array.

Use the accessors to return parts of the value of a specified object.

Partial primitive value with the exact return type

A value is divided into private properties of .

A value type is built of generic type variables on the , which results in the exact return type rather than just a string.

The ability to get part of the primitive value of the exact return type.

Object as types

Specific in functionality objects with generic type variables(which preserves type), act as precise types.

Objects have changed a to unique immutable names.

Type of the objects can be detected by the . because of its uniqueness and immutability.

There is typeOf() function of angular-package/type to detect these objects type.

Functionality follows the type

The most important functionalities, dedicated to a specific name.

Intuitiveness
Minimalism and simplicity

Minimal, simple to use and an ease-extendable objects.

Objects have functionalities that use their parts of primitive values.

General and object names.

names of generic type variables.

accessor and property names.

method names.

immutable
primitive wrapper objects
Immutable
primitive wrapper objects
primitive
generic type variables
primitive
template literal
Immutable
primitive wrapper objects
immutable
get
primitive
primitive
generic type variables
primitive
template literal
Symbol.toStringTag
Object.prototype.toString.call()
intuitive
intuitive
Intuitive
Intuitive
Intuitive