src/index.js
function update (key, value) {
  if (Array.isArray(key)) {
    return AsyncStorage.multiMerge(key.map(([key, val]) => [key, JSON.stringify(val)]))
  }

  return AsyncStorage.mergeItem(key, JSON.stringify(value))
}
function update (key, value) {
  if (Array.isArray(key)) {
    return AsyncStorage.multiMerge(key.map(([key, val]) => [key, JSON.stringify(val)]))
  }

  return AsyncStorage.mergeItem(key, JSON.stringify(value))
}
function update ( key , value ) { if ( Array . isArray ( key ) ) { return AsyncStorage . multiMerge ( key . map ( ( [ key , val ] ) => [ key , JSON . stringify ( val ) ] ) ) } return AsyncStorage . mergeItem ( key , JSON . stringify ( value ) ) }
Update key with value by merging.
Wrapper around mergeItem & multiMerge.
@param {String, Array} key for value
@param {any} value to update
@returns {Promise}
Update key with value by merging . Wrapper around mergeItem & multiMerge .