UNPKG

daniel.db

Version:

An easy to use package that makes database with JSON.

19 lines (16 loc) 306 B
function notFound(val) { const modes = [null, undefined] return modes.includes(val) } /** * * @param { string } text * @returns TypeError */ function DanielDBError(text) { return new TypeError(`daniel.db => ${text}`) } module.exports = { notFound, DanielDBError }