blob: 422a10dbc39d64bbcb8a3d55f02ddfbae74f3ffd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
function Assign() {
Array.prototype.lastElement = function <T>() {
if (!this.length) {
return undefined;
}
const last: T = this[this.length - 1];
return last;
};
}
export { Assign };
|