UNPKG

md2

Version:

Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Chips(Tags), Collapse, Colorpicker, Data Table, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.

34 lines 1.19 kB
/** * Extends an object with the *enumerable* and *own* properties of one or more source objects, * similar to Object.assign. * * @param dest The object which will have properties copied to it. * @param sources The source objects from which properties will be copied. */ /** * Extends an object with the *enumerable* and *own* properties of one or more source objects, * similar to Object.assign. * * @param dest The object which will have properties copied to it. * @param sources The source objects from which properties will be copied. */ export function extendObject(dest) { var sources = []; for (var _i = 1; _i < arguments.length; _i++) { sources[_i - 1] = arguments[_i]; } if (dest == null) { throw TypeError('Cannot convert undefined or null to object'); } for (var _a = 0, sources_1 = sources; _a < sources_1.length; _a++) { var source = sources_1[_a]; if (source != null) { for (var key in source) { if (source.hasOwnProperty(key)) { dest[key] = source[key]; } } } } return dest; } //# sourceMappingURL=object-extend.js.map