mongoosejs / kareem

Next-generation take on pre/post function hooks
Apache License 2.0
82 stars 8 forks source link

perf: remove get in favor of directly getting the value #23

Closed Uzlopak closed 2 years ago

Uzlopak commented 2 years ago

Assumptions:

The get has no benefit. We can even avoid the .has-call. Directly getting the value per get, and if it does not exist we alternatively assign the empty array.