Enforce required parameters

const throwIfMissing = () => {
  throw new Error('You have missing param!');
};
const func = (requiredParam = throwIfMissing()) => {
  // your code here
};
🛠️ with ❤️ by Ash Hitchcock © 2020 | Uses