MCPcopy
hub / github.com/sequelize/sequelize / parseRangeBound

Function parseRangeBound

lib/dialects/postgres/range.js:15–27  ·  view source on GitHub ↗
(bound, parseType)

Source from the content-addressed store, hash-verified

13}
14
15function parseRangeBound(bound, parseType) {
16 if (!bound) {
17 return null;
18 }
19 if (bound === 'infinity') {
20 return Infinity;
21 }
22 if (bound === '-infinity') {
23 return -Infinity;
24 }
25 return parseType(bound);
26
27}
28
29function stringify(data) {
30 if (data === null) return null;

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected