Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.isSubdocPathExists = function isKeyNotFound (err) {
let isError = false
if (err) {
if (err.code && err.code === errors.subdocPathExists) {
isError = true
}
}
return isError
}