1 contributor
Like
Install to-string as a package?
Copied
npm i @bit/justin-capalbo.ramda.to-string
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
toString (
val:
) : *
String
Returns the string representation of the given value. eval
'ing the output
should result in a value equivalent to the input value. Many of the built-in
toString
methods do not satisfy this requirement.
If the given value is an [object Object]
with a toString
method other
than Object.prototype.toString
, this method is invoked with no arguments
to produce the return value. This means user-defined constructor functions
can provide a suitable toString
method. For example:
function Point(x, y) {
this.x = x;
this.y = y;
}
Point.prototype.toString = function() {
return 'new Point(' + this.x + ', ' + this.y + ')';
};
R.toString(new Point(1, 2)); //=> 'new Point(1, 2)'
Example
Argument
val:
*
Returns
String