UNPKG

oberknecht-utils

Version:
11 lines (10 loc) 317 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isEvan = void 0; const isNullUndefined_1 = require("./isNullUndefined"); function isEvan(n) { if ((0, isNullUndefined_1.isNullUndefined)(n)) return NaN; return Math.trunc(n / 2) === n / 2; } exports.isEvan = isEvan;