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
26
frontend/node_modules/es-toolkit/dist/predicate/isWeakMap.js
generated
vendored
Normal file
26
frontend/node_modules/es-toolkit/dist/predicate/isWeakMap.js
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
//#region src/predicate/isWeakMap.ts
|
||||
/**
|
||||
* Checks if the given value is a `WeakMap`.
|
||||
*
|
||||
* This function tests whether the provided value is an instance of `WeakMap`.
|
||||
* It returns `true` if the value is a `WeakMap`, and `false` otherwise.
|
||||
*
|
||||
* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `WeakMap`.
|
||||
*
|
||||
* @param value - The value to test if it is a `WeakMap`.
|
||||
* @returns true if the value is a `WeakMap`, false otherwise.
|
||||
*
|
||||
* @example
|
||||
* const value1 = new WeakMap();
|
||||
* const value2 = new Map();
|
||||
* const value3 = new Set();
|
||||
*
|
||||
* console.log(isWeakMap(value1)); // true
|
||||
* console.log(isWeakMap(value2)); // false
|
||||
* console.log(isWeakMap(value3)); // false
|
||||
*/
|
||||
function isWeakMap(value) {
|
||||
return value instanceof WeakMap;
|
||||
}
|
||||
//#endregion
|
||||
exports.isWeakMap = isWeakMap;
|
||||
Loading…
Add table
Add a link
Reference in a new issue