1
0
Fork 0
js-utils/docs/api/js-utils.makemap.md

25 lines
579 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [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 | <code>Optional&lt;MapLike&lt;TVal&gt;&gt;</code> | |
<b>Returns:</b>
`Map<string, TVal>`