12 lines
254 B
JavaScript
12 lines
254 B
JavaScript
define(['./value'], function (value) {
|
|
|
|
// Provide an unwrapping proxy for automatic string coercion in engine
|
|
// operations such as JSON stringification.
|
|
function toString(wrapper) {
|
|
return String(value(wrapper));
|
|
}
|
|
|
|
return toString;
|
|
|
|
});
|