add

function
 add() 

Option name Type Description
properties Object, Array.<Object>

Properties of one or multiple objects

return Promise

adds one or multiple objects to local database

function add (objects) {
  return Array.isArray(objects)
    ? addMany.call(this, objects)
    : addOne.call(this, objects)
}