Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 547 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 547 Bytes

web component logo

toString

A minimal Javascript component for converting anything to a string

Installation

$ component install javve/to-string

Example

var toString = require('to-string');

toString(undefind); // returns ""
toString(null); // returns ""
toString(9); // returns "9"
toString({ foo: "bar" }); // returns something like "[object Object]"
toString(function() {}); // returns something like "function () {}"

In action

List.js

License

MIT