What is a Pure Function?

Technology CommunityCategory: ReactWhat is a Pure Function?
VietMX Staff asked 3 years ago

Pure function is a function that doesn’t depend on and doesn’t modify the states of variables out of its scope. Essentially, this means that a pure function will always return the same result given same parameters.