Skip to content

issues Search Results · repo:sindresorhus/deep-assign language:JavaScript

Filter by

20 results
 (55 ms)

20 results

insindresorhus/deep-assign (press backspace or delete to remove)

const assign = require( deep-assign ) const foo = { keys: new Set([ 123456 ]) } const bar = assign({}, {keys: new Set()}, foo) console.log( foo.keys.size = , foo.keys.size) console.log( bar.keys.size ...
  • jsumners
  • 3
  • Opened 
    on Sep 14, 2017
  • #29

now: deepAssign({a: {b: 0}}, {a: {b: 1, c: 2}}, {a: {c: 3}}); //= {a: {b: 1, c: 3}} deepAssign({a: {b: 0}}, {a: {b: 1, c: 2}}, {a: {c: 3, b: undefined}}); //= {a: {b: 1, c: 3}} if (b === || 0 || false) ...
  • yang123guo
  • 1
  • Opened 
    on Aug 4, 2017
  • #28

regular expressions are ignored. console.log(deepAssign({ str: a , reg: /a/ }, { str: b , reg: /b/ })); // results in { str: b , reg: /a/ } instead of { str: b , reg: /b/ }
  • JohannesMerz
  • 2
  • Opened 
    on Jun 22, 2017
  • #27

The github description says [DON T USE THIS MODULE PLEASE] but the readme doesn t say why not, and looking at the open issues doesn t make it clear either. It would be good to put a sentence or two in ...
  • saibotsivad
  • 3
  • Opened 
    on May 4, 2017
  • #26

Is this the correct behaviour...? let a = {x:{}} let b = {x: {y: 1}} let c = {x: {y: 2}} deepAssign({}, a, b, c) // { x: { y: 2 } } console.log(a) // { x: { y: 2 } } -- mutated! console.log(b) // { ...
  • educastellano
  • 5
  • Opened 
    on Feb 22, 2017
  • #25

Node version: 7.3.0 var deepAssign = require( deep-assign ) var o1 = {a: {b: 2}, d: {e: 5}} var o2 = {a: {c: 3}, d: {f: 6}} var o3 = deepAssign({}, o1, o2) console.log(o3) // { a: { b: 2, c: 3 }, d: { ...
  • myst729
  • 3
  • Opened 
    on Jan 5, 2017
  • #24

Hi Dev, Following is not working correct: var deepAssign = require( deep-assign ); deepAssign({}, {Lat: null, Lon: null}, {Lat: null, Lon: 2}) output is: {Lon: 2} It must be: {Lat: null, Lon 2} Due ...
  • topgun743
  • 6
  • Opened 
    on Dec 30, 2016
  • #23

Hello, When i try using deep-assign on an object referencing functions i get strange results. Here is my example: var deepAssign = require( deep-assign ); function test1() { console.log( test1 ) ...
  • belgac
  • 2
  • Opened 
    on Nov 10, 2016
  • #22

I have encountered this problem when I tried to remove an object from an array and re-assign it to an object. I have broken down the problem into this simple example: const deepAssign = require( deep-assign ...
  • JonnyBurger
  • 2
  • Opened 
    on Aug 28, 2016
  • #21

let deepClone = JSON.parse(JSON.stringify(objectToBeCloned)) The speed maybe? About speed: http://stackoverflow.com/a/5344074/115363 Or JSON is just for simple objects?
  • inancgumus
  • 1
  • Opened 
    on Aug 14, 2016
  • #20
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub