Skip to content

Commit 6f0a9ef

Browse files
MohdImran001Shinigami92
authored andcommitted
refactor: company.ts
1 parent c7c22e0 commit 6f0a9ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/company.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ export class Company {
44
readonly f;
55

66
constructor(private readonly faker: Faker) {
7-
this.f = this.faker.fake;
8-
97
// Bind `this` so namespaced is working correctly
108
for (const name of Object.getOwnPropertyNames(Company.prototype)) {
119
if (name === 'constructor' || typeof this[name] !== 'function') {
1210
continue;
1311
}
1412
this[name] = this[name].bind(this);
1513
}
14+
15+
this.f = this.faker.fake;
1616
}
1717

1818
/**

0 commit comments

Comments
 (0)