pick.js 289 B

123456789101112
  1. var helperCreatePickOmit = require('./helperCreatePickOmit')
  2. /**
  3. * 根据 key 过滤指定的属性值,返回一个新的对象
  4. *
  5. * @param {Object} obj 对象
  6. * @param {String/Array} key 键数组
  7. * @return {Object}
  8. */
  9. var pick = helperCreatePickOmit(1, 0)
  10. module.exports = pick