defaults_.defaults(object, *defaults)
Fill in undefined properties in object with the first value present in the following list of defaults objects.
1 2 3 | var iceCream = {flavor: "chocolate" }; _.defaults(iceCream, {flavor: "vanilla" , sprinkles: "lots" }); => {flavor: "chocolate" , sprinkles: "lots" } |
Please login to continue.