Types of Functions
Types of Functions
@linkinsunil
Types of Functions
in JavaScript
pure currying
function function
Explained
swipe
Sunil Vishwakarma 2
@linkinsunil
swipe
Sunil Vishwakarma 3
@linkinsunil
swipe
Sunil Vishwakarma 4
@linkinsunil
Unary Function
Unary function (i.e. monadic) is a function that
accepts exactly one argument. It stands for a
single argument accepted by a function.
swipe
Sunil Vishwakarma 5
@linkinsunil
Pure Function
A Pure function is a function where the return
value is only determined by its arguments without
any side effects. i.e, If you call a function with the
same arguments 'n' number of times and 'n'
number of places in the application then it will
always return the same value.
swipe
Sunil Vishwakarma 6
@linkinsunil
Currying Function
Currying is the process of taking a function with
multiple arguments and turning it into a sequence
of functions each with only a single argument.
swipe
@linkinsunil