diff --git a/src/helpers/raw.js b/src/helpers/raw.js index 5c4da62..f6126a6 100644 --- a/src/helpers/raw.js +++ b/src/helpers/raw.js @@ -5,7 +5,7 @@ const RawHelper = class { if (!_.isPlainObject(data)) { return false; } - const type = data['@type'] ?? data.type; + const type = data['@type'] || data.type; // This is a JSON-LD object with a @type if (!_.isNil(type)) { return false;