25 lines
637 B
Markdown
25 lines
637 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [makeMap](./js-utils.makemap.md)
|
|
|
|
## makeMap() function
|
|
|
|
Clone a map or map-like object into a new map.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
export declare function makeMap<TVal>(val: Optional<MapLike<TVal>>): Map<string, TVal>;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| val | [Optional](./js-utils.optional.md)<!-- --><[MapLike](./js-utils.maplike.md)<!-- --><TVal>> | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
Map<string, TVal>
|
|
|