UNPKG
spacylabs-rhino2
Version:
latest (5.1.4)
5.1.4
5.1.3
5.1.2
github.com/rhinofi/client-js
spacylabs-rhino2
/
src
/
lib
/
validators
/
id.js
8 lines
(6 loc)
•
137 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
const
DVFError
=
require
(
'../dvf/DVFError'
)
module
.
exports
=
(
dvf, id
) =>
{
if
(!id) {
throw
new
DVFError
(
'ERR_INVALID_ID'
) } }