A function that sums two arguments together. If only one argument is provided, it returns a function that expects one argument and returns the sum. For example, add(2, 3) should return 5, while add(2) should return a function. Calling this returned function with a single argument will then return the sum. If either argument isn't a valid number, returns undefined.
A script by V.