handsontable
Version:
Handsontable is a JavaScript Data Grid available for React, Angular and Vue.
10 lines • 343 B
JavaScript
import { isObject } from "../../../helpers/object.mjs";
/**
* Defines the value being displayed in an autocomplete-typed cells.
*
* @param {*} value The value to be displayed.
* @returns {*} The final value of the cell.
*/
export function valueGetter(value) {
return isObject(value) && value.value !== undefined ? value.value : value;
}