mirror of
https://github.com/vale981/grapher
synced 2025-03-12 13:56:38 -04:00
13 lines
No EOL
270 B
JavaScript
13 lines
No EOL
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;
|
|
}
|
|
} |