removeProduct(){ var vm = this return _.filter(vm.productFetch, function(num){ return num.serial !== vm.dataFetch.dataFetch.serialClone }) } validateDuplicate(){ var vm = this; var has = false var pluckSerial = _.compact(_.map(vm.removeProduct, 'serial')) _.includes(pluckSerial,vm.dataFetch.dataFetch.serial ) ? has = true : has = false return vm.hasError = has }, validateDuplicateAssetSerial(){ var vm = this; var has = false var pluckAssetSerial = _.compact(_.map(vm.removeProduct, 'assetSerial')); _.includes(pluckAssetSerial,vm.dataFetch.dataFetch.assetSerial ) ? has = true : has = false return has }
Search thousands of free JavaScript snippets that you can quickly copy and paste into your web pages. Get free JavaScript tutorials, references, code, menus, calendars, popup windows, games, and much more.
Subscribe to:
Post Comments (Atom)
The 6 New Rules of Communicating
The era of teleprompters and talking points has come to an end ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ...
-
code.gs // 1. Enter sheet name where data is to be written below var SHEET_NAME = "Sheet1" ; // 2. Run > setup // // 3....
No comments:
Post a Comment