1👍
✅
result is a string, not an array of numbers. So _.unique is returning the unique characters in the string. You need to use jSON.Parse
to translate the result to an array. Or specify dataType: 'json'
in the options.
Source:stackexchange.com