mirror of
https://github.com/cp6/my-idlers.git
synced 2025-04-20 10:08:35 +00:00
5 lines
158 B
JavaScript
5 lines
158 B
JavaScript
|
'use strict';
|
||
|
|
||
|
module.exports = function whereBetween(key, values) {
|
||
|
return this.where(key, '>=', values[0]).where(key, '<=', values[values.length - 1]);
|
||
|
};
|