@rbxts/zircon
Version:
<div> <img src="https://i.imgur.com/YgpbX7G.png" align="left" width="128"/> <h1>ZIRCON</h1> <h3>A clean, sleek, runtime debugging console for Roblox</h3> <a href="https://npmjs.com/package/@rbxts/zircon"><img src="https://badge.fury.io
21 lines (20 loc) • 738 B
TypeScript
/// <reference types="@rbxts/compiler-types" />
/**
* Utilites relating to Map objects
*/
export declare namespace MapUtils {
/**
* Creates a shallow copy of a map
* @param map The map to copy
* @returns A shallow copy of the map
*/
function Copy<K, V>(map: ReadonlyMap<K, V>): Map<K, V>;
/**
* Gets the value of this map, or creates the key with the default value if it doesn't exist.
* @param map The map
* @param key The key to get the value or "place" a default value in
* @param defaultValue The default value if the key doesn't exist (to set)
* @returns The value
*/
function GetOrCreateKey<K, V>(map: Map<K, V>, key: K, defaultValue: V): V;
}