es6-with

1.0.0 • Public • Published

The with keyword compatable with es6

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?

Readme

Keywords

none

Package Sidebar

Install

npm i es6-with

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.88 kB

Total Files

5

Last publish

Collaborators

  • seattleowl