- fixed Year-Prefix Bug in MetricParser - added metric_confidence and metric_proof_text to database - added Entity-Check and Annual-Priority to LLM prompt - improved UI: added confidence traffic light and mouse-over proof tooltip - restored missing API endpoints (create, bulk, wiki-override)
15 lines
444 B
JavaScript
15 lines
444 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Create a bound version of a function with a specified `this` context
|
|
*
|
|
* @param {Function} fn - The function to bind
|
|
* @param {*} thisArg - The value to be passed as the `this` parameter
|
|
* @returns {Function} A new function that will call the original function with the specified `this` context
|
|
*/
|
|
export default function bind(fn, thisArg) {
|
|
return function wrap() {
|
|
return fn.apply(thisArg, arguments);
|
|
};
|
|
}
|