/es6-with

The with keyword, except ES6.

Primary LanguageJavaScript

The with keyword compatable with es6

// Cannot use with, it's a keyword.
import wth from "./withes6.js"

const randomNumber = (min, max) => return wth(Math, (floor, random) => {
  return floor(random() * (max - min)) + min
})

A workaround to the with keyword. Why shouldn't I use with?