MCPcopy
hub / github.com/sequelize/sequelize / stringifyRangeBound

Function stringifyRangeBound

lib/dialects/postgres/range.js:5–13  ·  view source on GitHub ↗
(bound)

Source from the content-addressed store, hash-verified

3const _ = require('lodash');
4
5function stringifyRangeBound(bound) {
6 if (bound === null) {
7 return '' ;
8 }
9 if (bound === Infinity || bound === -Infinity) {
10 return bound.toString().toLowerCase();
11 }
12 return JSON.stringify(bound);
13}
14
15function parseRangeBound(bound, parseType) {
16 if (!bound) {

Callers 1

stringifyFunction · 0.85

Calls 2

toStringMethod · 0.65
stringifyMethod · 0.65

Tested by

no test coverage detected