-
Notifications
You must be signed in to change notification settings - Fork 786
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLJS-496: better implementation of
char
Stop relying on `goog/isNumber?`, implement `number?` as an inlining macro in core.clj, use it in core.cljs. Change `char` implementation so that it uses `String.fromCharCode` if given a number. It simply returns strings of length 1. On any other type of input it throws an exception.
- Loading branch information
1 parent
2f3c4b7
commit 877a361
Showing
3 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters