Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cae411eae7
commit
1c411e402e
19809 changed files with 1962608 additions and 97 deletions
28
frontend/node_modules/es-toolkit/dist/predicate/isIterable.js
generated
vendored
Normal file
28
frontend/node_modules/es-toolkit/dist/predicate/isIterable.js
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
//#region src/predicate/isIterable.ts
|
||||
/**
|
||||
* Checks if a value is iterable, i.e. it implements the iterable protocol by
|
||||
* providing a `Symbol.iterator` method.
|
||||
*
|
||||
* Arrays, strings, `Set`, `Map`, typed arrays, and generators are iterable;
|
||||
* plain objects, `null`, and `undefined` are not.
|
||||
*
|
||||
* This function can be used as a TypeScript type predicate to narrow the type of
|
||||
* `value` to `Iterable<unknown>`.
|
||||
*
|
||||
* @param value - The value to check.
|
||||
* @returns `true` if `value` is iterable, `false` otherwise.
|
||||
*
|
||||
* @example
|
||||
* isIterable([1, 2, 3]); // true
|
||||
* isIterable('abc'); // true
|
||||
* isIterable(new Set([1, 2, 3])); // true
|
||||
* isIterable(new Map()); // true
|
||||
* isIterable({ a: 1 }); // false
|
||||
* isIterable(123); // false
|
||||
* isIterable(null); // false
|
||||
*/
|
||||
function isIterable(value) {
|
||||
return value != null && typeof value[Symbol.iterator] === "function";
|
||||
}
|
||||
//#endregion
|
||||
exports.isIterable = isIterable;
|
||||
Loading…
Add table
Add a link
Reference in a new issue