Opened 3 years ago

Last modified 2 years ago

#18958 new enhancement

Deep option for lang.mixin

Reported by: Michael Schall Owned by:
Priority: low Milestone: 1.14
Component: Core Version: 1.12.1
Keywords: Cc:
Blocked By: Blocking:

Description

Add similar functionality as jquery.extend(true, obj1, obj2, obj3) Documentation I need this functionality, but don't want to bring in jquery for it...

Example below from their documentation.

var object1 = {
  apple: 0,
  banana: { weight: 52, price: 100 },
  cherry: 97
};
var object2 = {
  banana: { price: 200 },
  durian: 100
};
 
// Merge object2 into object1, recursively
$.extend( true, object1, object2 );

//object1 = {"apple":0,"banana":{"weight":52,"price":200},"cherry":97,"durian":100}

Change History (2)

comment:1 Changed 3 years ago by dylan

Milestone: tbd1.13
Priority: undecidedlow

comment:2 Changed 2 years ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.