1
This commit is contained in:
12
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/pick.js
Normal file
12
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/pick.js
Normal file
@@ -0,0 +1,12 @@
|
||||
var helperCreatePickOmit = require('./helperCreatePickOmit')
|
||||
|
||||
/**
|
||||
* 根据 key 过滤指定的属性值,返回一个新的对象
|
||||
*
|
||||
* @param {Object} obj 对象
|
||||
* @param {String/Array} key 键数组
|
||||
* @return {Object}
|
||||
*/
|
||||
var pick = helperCreatePickOmit(1, 0)
|
||||
|
||||
module.exports = pick
|
||||
Reference in New Issue
Block a user