code: function $true(params) {
      if (typeof params === 'boolean') {
          return params;
      }
      if (typeof params === 'number') {
          return params === 1;
      }
      if (typeof params === 'string') {
          params = params.trim();
  
          return params.toLowerCase() === 'true' || params === '1';
      }
  
      return false;
  }
docs: Return true if the given value is true or 'true'(case insensitive) or 1
  
  @param {boolean|string} params
  @returns {boolean}