This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If not string, console.log should just print it without trying to format
- Loading branch information
b69c6a0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want my sprintf implementation for this?
b69c6a0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if it is not string, but an object with meaningful toString method. Should you cut it down? May be just cast it to string String(f) and be whatever.