src/Select/Select.js
/**
	 * Limit results to the given number
	 * @param {Number|String} max  The number to limit by (placeholder string or integer greater than 0)
	 * @return {Select}
	 */
Limit results to the given number
@param {Number|String} max  The number to limit by (placeholder string or integer greater than 0)
@return {Select}
Limit results to the given number @param { Number|String } max The number to limit by ( placeholder string or integer greater than 0 ) @return { Select }
limit(max) {
		if (typeof max === 'string') {
			max = max.trim();
			if (this._isPlaceholder(max)) {
				this._limit = max;
			} else if (this._isEntirelyDigitsNoZeros(max)) {
				this._limit = parseInt(max, 10);
			}
		} else if (typeof max === 'number' && Number.isInteger(max) && max >= 1) {
			this._limit = max;
		}
		return this;
	}
limit ( max ) { if ( typeof max === 'string' ) { max = max . trim ( ) ; if ( this . _isPlaceholder ( max ) ) { this . _limit = max ; } else if ( this . _isEntirelyDigitsNoZeros ( max ) ) { this . _limit = parseInt ( max , 10 ) ; } } else if ( typeof max === 'number' && Number . isInteger ( max ) && max >= 1 ) { this . _limit = max ; } return this ; }
Limit results to the given number
 @param {Number|String} max  The number to limit by (placeholder string or integer greater than 0)
 @return {Select}
Limit results to the given number @param { Number|String } max The number to limit by ( placeholder string or integer greater than 0 ) @return { Select }
// is a placeholder like ? or :var // is entirely digits (no leading zeros)