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
25
frontend/node_modules/es-toolkit/dist/compat/object/valuesIn.mjs
generated
vendored
Normal file
25
frontend/node_modules/es-toolkit/dist/compat/object/valuesIn.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { keysIn } from "./keysIn.mjs";
|
||||
//#region src/compat/object/valuesIn.ts
|
||||
/**
|
||||
* Retrieves the values from an object, including those inherited from its prototype.
|
||||
*
|
||||
* - If the value is not an object, it is converted to an object.
|
||||
* - Array-like objects are treated like arrays.
|
||||
* - Sparse arrays with some missing indices are treated like dense arrays.
|
||||
* - If the value is `null` or `undefined`, an empty array is returned.
|
||||
* - When handling prototype objects, the `constructor` property is excluded from the results.
|
||||
*
|
||||
* @param object The object to query.
|
||||
* @returns Returns an array of property values.
|
||||
* @example
|
||||
* const obj = { a: 1, b: 2, c: 3 };
|
||||
* valuesIn(obj); // => [1, 2, 3]
|
||||
*/
|
||||
function valuesIn(object) {
|
||||
const keys = keysIn(object);
|
||||
const result = new Array(keys.length);
|
||||
for (let i = 0; i < keys.length; i++) result[i] = object[keys[i]];
|
||||
return result;
|
||||
}
|
||||
//#endregion
|
||||
export { valuesIn };
|
||||
Loading…
Add table
Add a link
Reference in a new issue