UNPKG
dfp-lib
Version:
latest (201611.0.0)
201611.0.0
This project hosts the Node.JS client library for the SOAP-based DFP API at Google.
dfp-lib
/
build
/
src
/
common
/
util
/
jsUtils.js
15 lines
(14 loc)
•
295 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict"
;
function
time
(
) {
return
0
| (
Date
.
now
() /
1000
); }
exports
.
time
= time; ;
function
isFloat
(
n
) {
return
(
typeof
n ===
'number'
) && (n %
1
) !==
0
; }
exports
.
isFloat
= isFloat;
function
isInt
(
n
) {
return
(
typeof
n ===
'number'
) && (n %
1
) ===
0
; }
exports
.
isInt
= isInt;