MCPcopy Create free account
hub / github.com/CoderOpen/waimai / mapKeys

Function mapKeys

front/wxcomponents/vant/common/component.js:3–9  ·  view source on GitHub ↗
(source, target, map)

Source from the content-addressed store, hash-verified

1import { basic } from '../mixins/basic';
2import { observe } from '../mixins/observer/index';
3function mapKeys(source, target, map) {
4 Object.keys(map).forEach(key => {
5 if (source[key]) {
6 target[map[key]] = source[key];
7 }
8 });
9}
10function VantComponent(vantOptions = {}) {
11 const options = {};
12 mapKeys(vantOptions, options, {

Callers 1

VantComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected