Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

circle-assign

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circle-assign

Simple deep object assign function

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

circle-assign logo

circle-assign

circle-assign is a simple deep object assign function and can be used in nodejs and the browser

Build Status Coverage Status npm version license

Installation

$ npm install --save circle-assign

Syntax

circleAssign(target, ...sources)

Usage

NodeJS
const circleAssign = require('circle-assign');
Browser (ES6)
import circleAssign from 'circle-assign';
Browser (CDN)
<script
  type="application/javascript"
  src="https://cdn.jsdelivr.net/npm/circle-assign@2.0.0/dist/circle-assign.min.js"
/>
const a = {
  language: 'javascript',
  features: {
    recursive: true,
    size: 'small'
  }
};

const b = {
  language: 'JavaScript',
  opensource: true,
  features: {
    size: '~1.3kb',
    canMergeFunctions: true
  }
};

const c = {
  coolFunc: () => {
    console.log('Much wow');
  }
};

console.log(circleAssign(a, b, c));

Output

{
  language: "JavaScript",
  opensource: true,
  features: {
    recursive: true,
    size: "~1.3kb",
    canMergeFunctions: true
  },
  coolFunc: () => {
    console.log('Much wow');
  }
}

Keywords

FAQs

Package last updated on 28 Nov 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc