common.js 247 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 'use strict'; module.exports = { objExclude(obj = {}, exclude = []) { const result = {}; Object.keys(obj).forEach(key => { if (exclude.indexOf(key) < 0) { result[key] = obj[key]; } }); return result; }, };