     arr = (str?.split(delim).map (part) -> do part.trim) ? []
     arr = arr.filter Boolean  if filterEmpty
     return arr
-
-  objectToArray: (options)->
-    for key, option of options
-      option.title ?= key
-      option.key    = key
-      option
 
 ###
 //     Underscore.js 1.3.1

      chain.push caller
    chain

  getUniqueId: do -> i = 0; -> "kd-#{i++}"

  getRandomNumber :(range=1e6, min=0)->
    res = Math.floor Math.random()*range+1


  killRepeat:(id)-> clearInterval id

  defer:do (queue = []) ->
    # this was ported from browserify's implementation of "process.nextTick"
    if window?.postMessage and window.addEventListener
      window.addEventListener "message", ((ev) ->
        if ev.source is window and ev.data is "kd-tick"
