I didn't know Object.defineProperties
existed. Would have been nice for a rule to teach me as I wrote consecutive Object.defineProperty
.
Object.defineProperty(matcher, 'logger', {
value: () => {},
writable: true,
})
Object.defineProperty(matcher, 'builder', {
value: (value) => value.map(({ build }) => build()),
writable: true,
})
Object.defineProperties(matcher, {
logger: {
value: () => {},
writable: true,
},
builder: {
value: (value) => value.map(({ build }) => build()),
writable: true,
}
})
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too