src/fn/type.js
/**
     * Returns true if the given argument is a percentage.
     * @method   isPercent
     * @global
     * @example
     * ```javascript
     * //true
     * bbn.fn.isPercent('5%');
     * ```
     * @memberof bbn.fn
     * @returns  {Boolean}
     */
Returns true if the given argument is a percentage.
Returns true if the given argument is a percentage .
isPercent(){
      if ( !arguments.length ) return false;
      for ( let a of arguments ){
        if ( (typeof a !== 'string') || !a.match(/^\d+(?:\.\d+)?%$/) ){
          return false;
        }
      }
      return true;
    }
isPercent ( ) { if ( ! arguments . length ) return false ; for ( let a of arguments ) { if ( ( typeof a !== 'string' ) || ! a . match ( / ^\d+(?:\.\d+)?%$ / ) ) { return false ; } } return true ; }
Returns true if the given argument is a percentage.
Returns true if the given argument is a percentage .