mirror of
https://github.com/HelloZeroNet/ZeroNet.git
synced 2023-12-14 04:33:03 +01:00
9 lines
235 B
CoffeeScript
9 lines
235 B
CoffeeScript
String::startsWith = (s) -> @[...s.length] is s
|
|
String::endsWith = (s) -> s is '' or @[-s.length..] is s
|
|
String::repeat = (count) -> new Array( count + 1 ).join(@)
|
|
|
|
window.isEmpty = (obj) ->
|
|
for key of obj
|
|
return false
|
|
return true
|