to-str
Converts the given value to a string.
Install
$ npm install --save to-str
Usage
For more use-cases see the tests
var toString = ; ; // => ''; // => ''; // => '0'; // => '-0'; // => 'abc'; // => -1; // => '1,2,3' ; // => '[object Object]' ;// => 'function () { console.log(123); }'
Related
- to-num - Converts the given value to a number.
- to-integer - Converts the given value to an integer.
- to-length - Converts value to an integer suitable for use as the length of an array-like object.
- to-lower - Converts string, as a whole, to lower case.
- to-upper - Converts string, as a whole, to upper case.
- to-path - Converts value to a property path array.
- to-source-code - Converts function to its source code.
Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.