angular-package
TwitterGitHub
Designing
Designing
  • Introduction
  • Definitions
    • Adjective: noun
    • Cohesion: noun
    • Cohesive: adjective
    • Cohesiveness: noun
    • Complex: adjective, noun
    • Complexity: noun
    • Consistency: noun
    • Consistent: adjective
    • Constantly: adverb
    • Diagnosis: noun
    • Functional: adjective
    • Functionality: noun
    • Get: verb
    • Have: verb
    • Immutable: adjective
    • Independent
    • Interdependence
    • Intuition: noun
    • Intuitive: adjective
    • Intuitiveness: noun
    • Is: verb
    • Logic: noun
    • Minimalism: noun
    • Mutable: adjective
    • Noun: noun
    • Phrase: noun, verb
    • Prefix: noun, verb
    • Preposition: noun
    • Purpose: noun
    • Replace: verb
    • Set: verb
    • Simplicity: noun
    • Suffix: noun, verb
    • Text: noun, verb
    • To: preposition
    • Verb: noun
  • Principles
    • String Wrapper Objects
  • Design processes
    • String Wrapper Objects
      • Methods usage analysis
      • Relevant questions
      • Investigation
      • Method names analysis
    • Wrap {}
      • Analysis
      • Accessors
      • Properties
      • Methods
        • hasOpening()
        • isWrapped()
    • Wrapper
  • Benefits
    • String Wrapper Object
      • Explanation
  • Other
    • @ Contact
    • ฿ Donate
Powered by GitBook
On this page

Was this helpful?

  1. Benefits

String Wrapper Object

PreviousWrapperNextExplanation

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 intuitive 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

General and intuitive object names.

Intuitive names of generic type variables.

Intuitive accessor and property names.

Intuitive method names.

Minimalism and simplicity

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

Objects have functionalities that use their parts of primitive values.

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()
immutable