This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-12
Channels
- # announcements (2)
- # bangalore-clj (4)
- # beginners (97)
- # calva (57)
- # cider (24)
- # clj-kondo (1)
- # cljdoc (4)
- # cljs-dev (8)
- # cljsrn (6)
- # clojure (27)
- # clojure-berlin (7)
- # clojure-dev (95)
- # clojure-europe (16)
- # clojure-italy (15)
- # clojure-losangeles (9)
- # clojure-nl (8)
- # clojure-spec (10)
- # clojure-uk (29)
- # clojurescript (25)
- # clojutre (2)
- # clr (6)
- # cursive (33)
- # datomic (20)
- # dirac (1)
- # duct (9)
- # fulcro (2)
- # graalvm (18)
- # jobs (5)
- # jobs-discuss (19)
- # nrepl (4)
- # nyc (1)
- # off-topic (18)
- # pathom (15)
- # re-frame (22)
- # reagent (4)
- # reitit (1)
- # rewrite-clj (9)
- # spacemacs (2)
- # xtdb (12)
Here’s a regression to track down: https://clojure.atlassian.net/browse/CLJS-3165
That’s awesome
cljs.user=> (require '[goog.string :as gstr])
nil
cljs.user=> (dir gstr)
...
unescapeEntities
unescapeEntitiesWithDocument
urlDecode
urlEncode
whitespaceEscape
nil
cljs.user=> (doc gstr/trim)
-------------------------
goog.string/trim
([str])
/**
* Trims white spaces to the left and right of a string.
* @param {string} str The string to trim.
* @return {string} A trimmed copy of {@code str}.
*/
nil
cljs.user=> (gstr/trim "a " "b ")
WARNING: Wrong number of args (2) passed to goog.string/trim at line 1 <cljs repl>
"a"
cljs.user=> (+ (gstr/trim "a ") 3)
WARNING: cljs.core/+, all arguments must be numbers, got [string number] instead at line 1 <cljs repl>
"a3"
32
👍 4
🆒 4