Sha256: fdb9e46fe7e7db9710738109a83edcde0da389ac508529f58db88953d10d285d

Contents?: true

Size: 573 Bytes

Versions: 117

Compression:

Stored size: 573 Bytes

Contents

'use strict';

var Type = require('../../type');

function resolveJavascriptUndefined() {
  return true;
}

function constructJavascriptUndefined() {
  /*eslint-disable no-undefined*/
  return undefined;
}

function representJavascriptUndefined() {
  return '';
}

function isUndefined(object) {
  return typeof object === 'undefined';
}

module.exports = new Type('tag:yaml.org,2002:js/undefined', {
  kind: 'scalar',
  resolve: resolveJavascriptUndefined,
  construct: constructJavascriptUndefined,
  predicate: isUndefined,
  represent: representJavascriptUndefined
});

Version data entries

117 entries across 102 versions & 17 rubygems

Version Path
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
tang-0.2.0 spec/tang_app/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
tang-0.1.0 spec/tang_app/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
tang-0.0.9 spec/tang_app/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
enju_library-0.3.8 spec/dummy/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
ilog-0.4.1 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
ilog-0.4.0 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
ilog-0.3.3 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
learn_create-0.0.22 lib/templates/javascript_lab_template/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
jester-data-8.0.0 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
ezii-os-5.2.1 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
ezii-os-2.0.1 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
ezii-os-1.1.0 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
ezii-os-1.0.0 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
ezii-os-0.0.0.1.0 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
ezii-os-0.0.0.0.1 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
govuk_publishing_components-18.0.0 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
govuk_publishing_components-17.21.0 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js