Sign in
apache
/
usergrid-nodejs
/
99e1024895ad98f919b6c5c2a663cec57d243be0
/
.
/
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"
}
}