❤ Benefits

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

  • A primitive value is divided into private properties of generic type variables.

  • A primitive value type is built of generic type variables on the template literal, 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

Immutable primitive value of primitive wrapper objects.

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

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

Partial primitive value with the exact return type

A primitive value is divided into private properties of generic type variables.

A primitive value type is built of generic type variables on the template literal, 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 Symbol.toStringTag to unique immutable names.

Type of the objects can be detected by the Object.prototype.toString.call(). 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.

Objects have functionalities that use their parts of immutable primitive values.

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.

Last updated