Sha256: ec01c6d068018a91b7671cd81051fc33f190138a23e7d16cf69d66871a7c727f
Contents?: true
Size: 451 Bytes
Versions: 26
Compression:
Stored size: 451 Bytes
Contents
"use strict"; const enumerationValues = new Set(["start", "center", "end", "nearest"]); 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 ScrollLogicalPosition` ); } return string; };
Version data entries
26 entries across 26 versions & 1 rubygems