mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add command and invocation counts to header
This commit is contained in:
@@ -63,6 +63,12 @@ _.mixin
|
||||
capitalize: (word) ->
|
||||
word[0].toUpperCase() + word[1..]
|
||||
|
||||
pluralize: (count=0, singular, plural=singular+'s') ->
|
||||
if count is 1
|
||||
"#{count} #{singular}"
|
||||
else
|
||||
"#{count} #{plural}"
|
||||
|
||||
losslessInvert: (hash) ->
|
||||
inverted = {}
|
||||
for key, value of hash
|
||||
|
||||
Reference in New Issue
Block a user