10 lines
291 B
JavaScript
10 lines
291 B
JavaScript
'use strict';
|
|
var isObject = require('../internals/is-object');
|
|
var getInternalState = require('../internals/internal-state').get;
|
|
|
|
module.exports = function isRawJSON(O) {
|
|
if (!isObject(O)) return false;
|
|
var state = getInternalState(O);
|
|
return !!state && state.type === 'RawJSON';
|
|
};
|