angular-cn/modules/angular2/test/services/rectangle_mock.ts

4 lines
99 B
TypeScript

export function createRectangle(left, top, width, height) {
return {left, top, width, height};
}