Sign in
apache
/
usergrid-nodejs
/
7f02b2614f006d420e17d32cd8292b8e8e0bd5d3
/
.
/
helpers
/
is.js
blob: a9157f1a01260f21a58975bb18f4fe7a828872d8 [
file
] [
log
] [
blame
]
'use strict'
module
.
exports
=
{
numeric
:
function
(
n
)
{
return
!
isNaN
(
parseFloat
(
n
))
&&
isFinite
(
n
)
},
uuid
:
function
(
s
)
{
return
(
/([a-f\d]{8}(-[a-f\d]{4}){3}-[a-f\d]{12}?)/
i
).
test
(
s
)
},
bool
:
function
(
b
)
{
return
typeof
(
b
)
===
"boolean"
}
}