MCPcopy Create free account
hub / github.com/beefe/react-native-actionsheet / merge

Function merge

lib/utils.js:5–14  ·  view source on GitHub ↗
(target, source)

Source from the content-addressed store, hash-verified

3}
4
5export function merge (target, source) {
6 Object.keys(source).forEach((key) => {
7 if (Object.prototype.toString.call(source).slice(8, -1) === 'Object') {
8 target[key] = merge(target[key] || {}, source[key])
9 } else {
10 target[key] = source[key]
11 }
12 })
13 return target
14}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…