angular-docs-cn/modules/angular2/test/services/rectangle_mock.es6

4 lines
99 B
JavaScript

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