HEX
Server: nginx/1.24.0
System: Linux nowruzgan 6.8.0-57-generic #59-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 15 17:40:59 UTC 2025 x86_64
User: babak (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //usr/share/opensearch-dashboards/node_modules/fp-ts/es6/Trace.js
/**
 * Log any value to the console for debugging purposes and then return a value. This will log the value's underlying
 * representation for low-level debugging
 *
 * @since 1.0.0
 */
export var trace = function (message, out) {
    console.log(message); // tslint:disable-line:no-console
    return out();
};
/**
 * Log any value and return it
 *
 * @since 1.0.0
 */
export var spy = function (a) {
    return trace(a, function () { return a; });
};
export function traceA(F) {
    return function (x) { return trace(x, function () { return F.of(undefined); }); };
}
export function traceM(F) {
    return function (a) { return trace(a, function () { return F.of(a); }); };
}