src/Select/Select.js
/**
	 * Add a WHERE clause with a BETWEEN condition
	 * @param {String} column  The column name
	 * @param {Array} twoValueArray  The two values to be between
	 * @return {Select}
	 */
Add a WHERE clause with a BETWEEN condition
@param {String} column  The column name
@param {Array} twoValueArray  The two values to be between
@return {Select}
Add a WHERE clause with a BETWEEN condition @param { String } column The column name @param { Array } twoValueArray The two values to be between @return { Select }
whereBetween(column, twoValueArray) {
		const isNullish = v =>
			v === undefined || v === null || v === false || isNaN(v);
		if (!isNullish(twoValueArray[0]) && !isNullish(twoValueArray[1])) {
			this.where(column, 'BETWEEN', twoValueArray);
		} else if (!isNullish(twoValueArray[0]) && isNullish(twoValueArray[1])) {
			this.where(column, '>=', twoValueArray[0]);
		} else if (isNullish(twoValueArray[0]) && !isNullish(twoValueArray[1])) {
			this.where(column, '<=', twoValueArray[1]);
		} else {
			throw new Error(
				'Select.whereBetween(): Array must have at least 1 non nullish value'
			);
		}
		return this;
	}
whereBetween ( column , twoValueArray ) { const isNullish = v => v === undefined || v === null || v === false || isNaN ( v ) ; if ( ! isNullish ( twoValueArray [ 0 ] ) && ! isNullish ( twoValueArray [ 1 ] ) ) { this . where ( column , 'BETWEEN' , twoValueArray ) ; } else if ( ! isNullish ( twoValueArray [ 0 ] ) && isNullish ( twoValueArray [ 1 ] ) ) { this . where ( column , '>=' , twoValueArray [ 0 ] ) ; } else if ( isNullish ( twoValueArray [ 0 ] ) && ! isNullish ( twoValueArray [ 1 ] ) ) { this . where ( column , '<=' , twoValueArray [ 1 ] ) ; } else { throw new Error ( 'Select.whereBetween(): Array must have at least 1 non nullish value' ) ; } return this ; }
Add a WHERE clause with a BETWEEN condition
 @param {String} column  The column name
 @param {Array} twoValueArray  The two values to be between
 @return {Select}
Add a WHERE clause with a BETWEEN condition @param { String } column The column name @param { Array } twoValueArray The two values to be between @return { Select }
// both are nullish!