price-history/node_modules/mongoose/lib/schema/operators/exists.js
2024-01-11 04:28:21 +05:30

13 lines
203 B
JavaScript

'use strict';
const castBoolean = require('../../cast/boolean');
/*!
* ignore
*/
module.exports = function(val) {
const path = this != null ? this.path : null;
return castBoolean(val, path);
};