PromoCursed/node_modules/core-js/internals/is-raw-json.js
2024-08-20 23:25:37 +04:00

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