# pick.value-type()

The `pick.value-type()` or `map.pick-value-type()` function picks the properties with values of [`$types`](#usdtypes...).

{% code lineNumbers="true" %}

```scss
// Sass.
@use 'sass:list';
@use 'sass:map';

// The `pick.value-type()` or `map.pick-value-type()` function.
@function value-type($map, $types...) {
  $result: ();
  @each $type in $types {
    @if list.index(
      bool calculation color function list map null number string,
      $type
    )
    {
      @each $key, $value in $map {
        @if type-of($value) ==
          $type or
          (not $type and type-of($type) == type-of($value))
        {
          $result: map.deep-merge(
            $result,
            (
              $key: $value,
            )
          );
        }
      }
    }
  }
  @return $result;
}
```

{% endcode %}

{% embed url="<https://github.com/angular-package/sass/blob/main/map/pick/_pick.value-type.function.scss>" %}

### Parameters

#### `$map`

A map from which properties with values of a certain [`$types`](#usdtypes...) are picked.

#### `$types...`

The `bool`, `calculation`, `color`, `function`, `list`, `map`, `null`, `number` or `string` types of the property values to pick from [`$map`](#usdmap).

### Return

The return value is a copy of [`$map`](#usdmap) with values associated with [`$types`](#usdtypes...).

## Examples

```scss
// Use.
@use '@angular-package/sass/map';

// Examples.


```


---

# 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/sass/map/pick/pick.value-type.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.
