New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

circle-assign

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circle-assign

Simple deep object assign function

1.0.10
Version published
Maintainers
1
Created

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

const circleAssign = require('circle-assign');

let source = {
  language: 'javascript',
  features: {
    recursive: true,
    size: 'small'
  }
};

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

console.log(circleAssign(source, target));

Output

{
  language: "JavaScript",
  opensource: true,
  features: {
    recursive: true,
    size: "~1.3kb",
    canMergeFunctions: true
  }
}

FAQs

Package last updated on 23 Oct 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