mirror of
https://github.com/vale981/grapher
synced 2025-03-12 22:06:37 -04:00
13 lines
270 B
JavaScript
13 lines
270 B
JavaScript
![]() |
export default function (options, maxLimit) {
|
||
|
if (maxLimit === undefined) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
if (options.limit) {
|
||
|
if (options.limit > maxLimit) {
|
||
|
options.limit = maxLimit;
|
||
|
}
|
||
|
} else {
|
||
|
options.limit = maxLimit;
|
||
|
}
|
||
|
}
|