UNPKG

hyperformula

Version:

HyperFormula is a JavaScript engine for efficient processing of spreadsheet-like data and formulas

25 lines (24 loc) 581 B
"use strict"; exports.__esModule = true; exports.ProcessableValue = void 0; /** * @license * Copyright (c) 2025 Handsoncode. All rights reserved. */ class ProcessableValue { constructor(rawValue, processFn) { this.rawValue = rawValue; this.processFn = processFn; this.processedValue = null; } getProcessedValue() { if (this.processedValue === null) { this.processedValue = this.processFn(this.rawValue); } return this.processedValue; } markAsModified() { this.processedValue = null; } } exports.ProcessableValue = ProcessableValue;