❤ Benefits
If you read the introduction you know that under the hood of this package are primitive wrapper objects, and below is a list containing some pros of using them and of important design benefits.
Immutable primitive value of primitive wrapper objects.
Primitive values are constructed from generic type variables on the template literals which results in the exact return type, not just a
string, and the ability to get part of the primitive value of the exact return type.Specific in functionality objects with generic type variables(which preserves type) act as precise types.
The most important functionalities for a specific name.
General and intuitive object names.
All this above is in a form of minimal, simple to use, and ease-extendable 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 of the get accessors to return parts of the primitive value of a specified object.
Partial primitive value with the exact return type
Primitive values are constructed from generic type variables on the template literals which results in the exact return type, not 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.
Last updated