JSPM

@rbxts/deepcopy

0.1.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 4
    • Score
      100M100P100Q34011F
    • License ISC

    DeepCopy utility function.

    Package Exports

    • @rbxts/deepcopy
    • @rbxts/deepcopy/out/init.lua

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rbxts/deepcopy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Deep Copy

    Changes

    • Renamed DeepCopy to deepCopy.

    Installation

    npm i @rbxts/deepcopy

    Example Usage

    import { deepCopy } from "@rbxts/deepcopy";
    
    deepCopy(new Map<string, number>()); // Copied - Map<string, number>
    deepCopy([1, 5, 8]); // Copied - [1, 5, 8]
    deepCopy({ 
        ["key"]: { 
            ["key2"]: "value"
        } 
    }) // Copied - { ["key"]: { ["key2"]: "value" } }