core/DB.js
function (err_toArray, array) {

			if (err_toArray) {
				return l_notifyError(clt_name, 'getPage.toArray', err_toArray, cb);
			}

			//LOG.sys('array found succces, length: ' + array.length, 'SR.DB');
			// NOTE: probably no need to check
			if (array.length === _opts.limit) {
				UTIL.safeCall(cb, null, array, array[array.length - 1]);
			} else {
				UTIL.safeCall(cb, null, array, null);
			}
		}
function (err_toArray, array) {

			if (err_toArray) {
				return l_notifyError(clt_name, 'getPage.toArray', err_toArray, cb);
			}

			//LOG.sys('array found succces, length: ' + array.length, 'SR.DB');
			// NOTE: probably no need to check
			if (array.length === _opts.limit) {
				UTIL.safeCall(cb, null, array, array[array.length - 1]);
			} else {
				UTIL.safeCall(cb, null, array, null);
			}
		}
function ( err_toArray , array ) { if ( err_toArray ) { return l_notifyError ( clt_name , 'getPage.toArray' , err_toArray , cb ) ; } //LOG.sys('array found succces, length: ' + array.length, 'SR.DB'); // NOTE: probably no need to check if ( array . length === _opts . limit ) { UTIL . safeCall ( cb , null , array , array [ array . length - 1 ] ) ; } else { UTIL . safeCall ( cb , null , array , null ) ; } }
convert result to an array
convert result to an array