Files
Superalgos/server/node_modules/mongoose/lib/schema/operators/exists.js
T
2018-09-03 15:19:57 +02:00

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);
};