"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// let user: User = {name: "John Doe", id: 1, email: ""};
// Destructuring: phân rã đối tượng
let { name: userName, email: userLogin } = { name: "John Doe", id: 1, email: "" };
let employee = {
    name: "Jane Smith",
    id: 2,
    email: "",
    salary: 50000
};
let [user1, user2, ...restUser] = [
    { name: "John Doe", id: 1, email: "" },
    { name: "Jane Smith", id: 2, email: "" },
    { name: "Alice Johnson", id: 3, email: "" },
    { name: "Bob Brown", id: 4, email: "" }
];
console.log(user1);
console.log(user2);
console.log(restUser);
let rs = restUser.filter((user) => user.id > 3);
console.log(rs);
//decorator
// @Component({})
// class Component {
//     constructor(public name: string){}
// }
//# sourceMappingURL=interface.js.map