1
0
Fork 0
easejs/scripts/ex/class.js

17 lines
233 B
JavaScript

const { Class } = easejs;
const Stack = Class( 'Stack',
{
'private _stack': [],
'public push'( value )
{
this._stack.push( value );
},
'public pop'()
{
return this._stack.pop();
},
} );