Skip to content

Commit

Permalink
GitHub Issue #27 - add name
Browse files Browse the repository at this point in the history
  • Loading branch information
oakmac committed Dec 24, 2014
1 parent caa5e99 commit 804b61a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cljs-cheatsheet/cljs_cheatsheet/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,4 @@
(when-let [search-input-el (by-id search-input-id)]
(.focus search-input-el)))

($ init!)
($ init!)
3 changes: 2 additions & 1 deletion cljs-cheatsheet/cljs_cheatsheet/html.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@
[:td.label-9e0b7 "Create"]
[:td.body-885f4
(literal "\"abc\"")
(fn-link "str")]]
(fn-link "str")
(fn-link "name")]]
[:tr.even-ff837
[:td.label-9e0b7 "Use"]
[:td.body-885f4
Expand Down
17 changes: 17 additions & 0 deletions docs/cljs.core_name.cljsdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
===== Name
cljs.core/name

===== Signature
[x]

===== Description

Returns a string value of a keyword, string, or symbol.

`(name :foo)` => `"foo"`

`(name "foo")` => `"foo"`

`(name 'foo)` => `"foo"`

===== Related

0 comments on commit 804b61a

Please sign in to comment.