Keeping Your Functions Pure

[!INFO]-
topic: ๐Ÿงน Clean Code
links:

source: Clean Code | Udemy
tags: #permanent-noteย #published

Last Modified: =dateformat(this.file.mtime, "MMM. dd, yyyy - HH:mm")


A pure function always returns the same output for the same input. In addition, a pure function doesn't have any side effects. Pure functions make your code predictable.