25 lines
579 B
Markdown
25 lines
579 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 | <code>Optional<MapLike<TVal>></code> | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
`Map<string, TVal>`
|
|
|