code: function isTruthy(val) {
      if (!isValue(val))
          return false;
      if (typeof val === 'number')
          return val > 0;
      if (isString(val) && !val.length)
          return false;
      return (val !== false &&
          val !== isNaN(val));
  }
docs: Is Truthy
  Checks if value is truthy e.g. not false, 0,
  null, undefined, empty.
  
  Strings such as 'false', '0',  '-' or 'no'
  will return true. If NOT desired call toBoolean
  on the value then pass to isTruthy.
  
  @param val the value to inspect.