🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

copy-kopya

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

copy-kopya

Create an immutable clone or copy of data. This could be an array, object, map, set or function.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
6
-60%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

Overview

Create an immutable clone or copy of data. This could be an array, object, map, set or function.

Installation

npm i copy-kopya --save

Setup & Basic Usage

const { copy } = require('copy-kopya')
// OR
import { copy } from 'copy-kopya'

const data = [1, 2, 3];

const result = copy(data)

// [1,2,3]

Additional Info

Options

PropertySample
ARRAY of data[1, 2, 3]
ARRAY of object[{ name: "John" }, { name: "Peter" }]
FUNCTIONconst test = () => "Hello world";
MAPconst map = new Map(); map.set("a", 1);
SETconst set = new Set(); set.add(1);

Credits to: Chris Ferdinandi.

Official documentation from https://gomakethings.com/

Contribute

Feel free to clone or fork this project: https://github.com/deanilvincent/copy-kopya.git

Contributions & pull requests are welcome!

I'll be glad if you give this project a ★ on Github :))

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Keywords

immutable

FAQs

Package last updated on 01 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts