deleteById(arrayName, dataId)
It deletes the data matching the dataId
in arrayName
in the db.json file.
Deletes data that matches the data ID
const dbcopycat = require('dbcopycat');
dbcopycat.deleteById(arrayName, dataId);
It deletes the data matching the dataId
in arrayName
in the db.json file.
Deletes data that matches the data ID
const dbcopycat = require('dbcopycat');
dbcopycat.deleteById(arrayName, dataId);