Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

find new values in array based on another array apps script

const ObjectOfKeys = keys.reduce((acc,rec)=> {
                        let nextAcc = acc;
                        nextAcc[rec] = true;
                        return nextAcc;
                        },{}};

const filteredData = data.filter(rec => !ObjectKeys[rec[0]])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #values #array #based #array #apps #script
ADD COMMENT
Topic
Name
3+2 =