is-raw-json.js 291 B

123456789
  1. 'use strict';
  2. var isObject = require('../internals/is-object');
  3. var getInternalState = require('../internals/internal-state').get;
  4. module.exports = function isRawJSON(O) {
  5. if (!isObject(O)) return false;
  6. var state = getInternalState(O);
  7. return !!state && state.type === 'RawJSON';
  8. };