Using lodash push to an array only if value doesn’t exist? February 23, 2023 by Tarik You can use _.union _.union(scope.index, [val]);