# String Wrapper Objects

## The basics

1. The object name **must** be [**intuitive**](/designing/definitions/intuitive-adjective.md).
2. The object **functionalities** must be [**intuitive**](/designing/definitions/intuitive-adjective.md) and **reflect** its **name**.
3. The object **should** contain only **crucial** [**functionalities**](/designing/definitions/functionality-noun.md) to achieve **ease**-**extensibility**.
4. **Method names** **must** be [**consistent**](/designing/definitions/consistent-adjective.md) and [**intuitive**](/designing/definitions/intuitive-adjective.md).

## String Wrapper Object

### The primitive value

1. A **primitive** value is **divided** into private properties of **generic type variables,** which are **part** of it.&#x20;
2. Constructor **parameters** types are **generic type variables** to **preserve** the **exact** **type.**
3. 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`.
4. The **part** of the **primitive value is accessible** by the use of **`get`** accessors.
5. The **parts** of the **primitive value** are:
   1. **stored** in the **private** **hashed** **properties,**
   2. **accessible** through the `get` accessors,
   3. **immutable**, cause the use of the `get` accessor.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.angular-package.dev/designing/principles/string-wrapper-objects.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
