Sha256: fd6e912ebc50fe030a0de29d648ee95df8213dc4874c36ceb88c75d5929ce7b1
Contents?: true
Size: 575 Bytes
Versions: 112
Compression:
Stored size: 575 Bytes
Contents
'use strict'; var Type = require('../type'); var _hasOwnProperty = Object.prototype.hasOwnProperty; function resolveYamlSet(data) { if (null === data) { return true; } var key, object = data; for (key in object) { if (_hasOwnProperty.call(object, key)) { if (null !== object[key]) { return false; } } } return true; } function constructYamlSet(data) { return null !== data ? data : {}; } module.exports = new Type('tag:yaml.org,2002:set', { kind: 'mapping', resolve: resolveYamlSet, construct: constructYamlSet });
Version data entries
112 entries across 105 versions & 6 rubygems