Improve Jqhtml_Integration.js documentation with hydration system explanation Add jqhtml-laravel integration packages for traditional Laravel projects 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
367 B
JavaScript
17 lines
367 B
JavaScript
"use strict";
|
|
|
|
/**
|
|
* Returns a string representation of the value
|
|
* @param {*} value
|
|
* @returns {string}
|
|
*/
|
|
function valueToString(value) {
|
|
if (value && value.toString) {
|
|
// eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods
|
|
return value.toString();
|
|
}
|
|
return String(value);
|
|
}
|
|
|
|
module.exports = valueToString;
|