Simple npm package that lets you check is a number is divisible by zero!
npm i is-divisible-by-zero -P
const isDivisibleByZero = require("is-divisible-by-zero");
console.log(isDivisibileByZero(2));
Returns true
if the input number is divisible by zero and false
if it is not.