shell-ahk
Version:
`Lodash`/`jQuery` for `AHK`.
17 lines (12 loc) • 366 B
text/coffeescript
# -check
###* import('../type/module').GetType ###
export default (ipt) ->
Native 'if ipt is Number'
Native ' return "number"'
if IsFunc ipt then return 'function'
if IsObject ipt
if ipt.Count() == ipt.Length()
unless ipt.Length() >= 0 then return 'function'
return 'array'
return 'object'
return 'string'