code: function doLimit(query) {
  	//	console.log(query.limit, query.offset)
  	if (query.limit) {
  		var offset = 0;
  		if (query.offset) {
  			offset = query.offset | 0 || 0;
  			offset = offset < 0 ? 0 : offset;
  		}
  		var limit;
  		if (query.percent) {
  			limit = ((query.data.length * query.limit / 100) | 0) + offset;
  		} else {
  			limit = (query.limit | 0) + offset;
  		}
  		query.data = query.data.slice(offset, limit);
  	}
  }
docs: Limiting