Sha256: 2cb3a1c4b775ac2ebebe47c781bcd0c307bc17773a059bde2de0db257545710c
Contents?: true
Size: 423 Bytes
Versions: 20
Compression:
Stored size: 423 Bytes
Contents
"use strict"; const enumerationValues = new Set(["loading", "interactive", "complete"]); exports.enumerationValues = enumerationValues; exports.convert = function convert(value, { context = "The provided value" } = {}) { const string = `${value}`; if (!enumerationValues.has(string)) { throw new TypeError(`${context} '${string}' is not a valid enumeration value for DocumentReadyState`); } return string; };
Version data entries
20 entries across 20 versions & 1 rubygems