shell-ahk
Version:
`Lodash`/`jQuery` for `AHK`.
21 lines (15 loc) • 445 B
text/coffeescript
# @ts-check
import $isString from './isString'
import $join from './join'
import $split from './split'
###* @type import('../type/module').Uniq ###
export default (list) ->
$hasString = false
for $item in list
if $isString $item
$hasString = true
break
$string = $join list, ','
if $hasString then Native 'Sort, $string, C U D,'
else Native 'Sort, $string, N U D,'
return $split $string, ','