Sign in
apache
/
usergrid-nodejs
/
80a22baa0b046a99efc69daa3c387f037272e9f2
/
.
/
helpers
/
query.js
blob: 0b3e6cd6e09d4c6e070cd7a45780018b0fa76c57 [
file
] [
log
] [
blame
]
'use strict'
var
isNumeric
=
require
(
'./isNumeric'
),
util
=
require
(
'util'
)
module
.
exports
=
{
useQuotesIfRequired
:
function
(
value
)
{
return
isNumeric
(
value
)
?
value
:
util
.
format
(
'\'%s\''
,
value
)
}
}