MCPcopy Create free account
hub / github.com/circircir-circle/human_exist_device / omit

Method omit

mini_program/common/Tools.js:512–518  ·  view source on GitHub ↗

* 删除对象上的指定属性并返回一个新的对象 * @param {Object} obj * @param {Array} keys * @return {[type]}

(obj, keys)

Source from the content-addressed store, hash-verified

510 * @return {[type]}
511 */
512 omit(obj, keys) {
513 let o = this.clone(obj)
514 keys.forEach(key => {
515 delete o[key]
516 })
517 return o
518 }
519
520 /**
521 * 返回一个新数组,数组中的元素为指定属性的值

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.95

Tested by

no test coverage detected