7 lines
183 B
JavaScript
7 lines
183 B
JavaScript
|
'use strict';
|
||
|
|
||
|
module.exports = function whereNull() {
|
||
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
||
|
|
||
|
return this.where(key, '===', null);
|
||
|
};
|