We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7c22e0 commit 6f0a9efCopy full SHA for 6f0a9ef
1 file changed
src/company.ts
@@ -4,15 +4,15 @@ export class Company {
4
readonly f;
5
6
constructor(private readonly faker: Faker) {
7
- this.f = this.faker.fake;
8
-
9
// Bind `this` so namespaced is working correctly
10
for (const name of Object.getOwnPropertyNames(Company.prototype)) {
11
if (name === 'constructor' || typeof this[name] !== 'function') {
12
continue;
13
}
14
this[name] = this[name].bind(this);
15
+
+ this.f = this.faker.fake;
16
17
18
/**
0 commit comments