JavaScript:实现检查 number 是否为 pronic普洛尼克数
/*
* function to check if number is pronic.
* return true if number is pronic.
* else false
*/
/**
* @function isPronic
* @description -> Checking if number is pronic using product of two consecutive numbers
* If number is a product of two consecutive numbers, then it is pronic
* therefore, the function will return true
*
* If number is not a product of two consecutive numbers, then it is not pronic
* therefore, the function will return false
* @param {number} number
* @returns {boolean}
*/
export const isP