unitejs-packages
Version:
Packages for use with UniteJS.
27 lines (23 loc) • 494 B
JavaScript
/**
* Example of lodash usage.
*
* @export
* @class ExampleLodash
*/
import _ from "lodash";
export class ExampleLodash {
/**
* Result 1 displayed in the view.
* @type {string}
*/
result1;
/**
* The component is being attached to the DOM.
* @returns {void}
*/
attached() {
const objA = {name: "bob", car: "porsche"};
const objB = {name: "bill", age: 40};
this.result1 = JSON.stringify(_.assign(objA, objB));
}
}