REFACTOR: Remove `_.isString`

This commit is contained in:
Robin Ward 2020-09-01 14:37:09 -04:00
parent b4444070b3
commit e60d06d880
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ export default function(options) {
inputSelectedItems.push("");
}
if (_.isString(inputSelectedItems[0]) && me.val().length > 0) {
if (typeof inputSelectedItems[0] === "string" && me.val().length > 0) {
inputSelectedItems.pop();
inputSelectedItems.push(me.val());
if (options.onChangeItems) {