Sha256: fe92f48ffc32fcaff8f36906b19cd48ba165e34df0471991e1f294764d4f2504
Contents?: true
Size: 432 Bytes
Versions: 26
Compression:
Stored size: 432 Bytes
Contents
"use strict"; const enumerationValues = new Set(["select", "start", "end", "preserve"]); exports.enumerationValues = enumerationValues; exports.convert = (globalObject, value, { context = "The provided value" } = {}) => { const string = `${value}`; if (!enumerationValues.has(string)) { throw new globalObject.TypeError(`${context} '${string}' is not a valid enumeration value for SelectionMode`); } return string; };
Version data entries
26 entries across 26 versions & 1 rubygems