exists.js 203 B

123456789101112
  1. 'use strict';
  2. const castBoolean = require('../../cast/boolean');
  3. /*!
  4. * ignore
  5. */
  6. module.exports = function(val) {
  7. const path = this != null ? this.path : null;
  8. return castBoolean(val, path);
  9. };