js-is-pure-function

check is a function a pure function


Keywords
pure, function, check, validation
License
MIT
Install
npm install js-is-pure-function@1.0.0

Documentation

js-is-pure-function

Build Status

A simple and easy way to evaluate if a function answer the following constraints:

  • The function always take arguments (at least one)
  • The function always return a result (at least different from undefined)

As of now, it's purely experimental, and more verifications are to come (namely, on the body of the function).