GITLAB

Aaron.Liu / sf-erp-server

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • sf-erp-server
  • app
  • util
  • common.js
  • f552c61e   初始化 Browse Code »
    Aaron.Liu
    2018-04-19 18:43:49 +0800  
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;
  },
};