UNPKG

@gocodingnow/rn-native-base-boilerplate

Version:
15 lines (13 loc) 357 B
export function isset(prop) { return typeof prop !== 'undefined' } export function merge(target, source) { Object.keys(source).forEach(key => { if (Object.prototype.toString.call(source).slice(8, -1) === 'Object') { target[key] = merge(target[key] || {}, source[key]) } else { target[key] = source[key] } }) return target }