• Get whether a number is a power of another number

    Parameters

    • input: number
    • power: number

    Returns boolean

    Example

    import { number } from "@rjweb/utils"

    number.power(5, 25) // true
    number.power(10, 15) // false