Function divideBy

Curried function that takes two numbers and returns the second divided by the first.

const a = divideBy(4)(2); // 0.5
const b = divideBy(2)(4); // 2
  • Parameters

    • b: number

    Returns (a: number) => number