isObject = function(value) {
  var type = typeof value;
  return !!value && (type == 'object' || type == 'function');
}
Internal curryN function.

@private
@category Function
@param {Number} length The arity of the curried function.
@return {array} An array of arguments received thus far.
@param {Function} fn The function to curry.