Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

_.extend() underscore

  
        var obj1 = {
            firstKey: 'firstValue',
        };
  
        var obj2 = {
            secondKey: 'secondValue',
        };
        /*combines obj1 and obj2 into one object*/
 
PREVIOUS NEXT
Tagged: #underscore
ADD COMMENT
Topic
Name
5+2 =