Prototypes.coffee 235 B

12345678
  1. String::startsWith = (s) -> @[...s.length] is s
  2. String::endsWith = (s) -> s is '' or @[-s.length..] is s
  3. String::repeat = (count) -> new Array( count + 1 ).join(@)
  4. window.isEmpty = (obj) ->
  5. for key of obj
  6. return false
  7. return true