Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.9/mongoose/lib/helpers/projection/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.9/mongoose/lib/helpers/projection/isDefiningProjection.js

'use strict';

/*!
 * ignore
 */

module.exports = function isDefiningProjection(val) {
  if (val == null) {
    // `undefined` or `null` become exclusive projections
    return true;
  }
  if (typeof val === 'object') {
    // Only cases where a value does **not** define whether the whole projection
    // is inclusive or exclusive are `$meta` and `$slice`.
    return !('$meta' in val) && !('$slice' in val);
  }
  return true;
};

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists