text: "use strict";
  
  /**
   * Turns a callback function into a promise
   * @param {function} fn Function
   * @returns {Promise}
   */
  function promisify(fn) {
      if(typeof fn !== "function") throw new TypeError("Argument is not a function");
      return (...args) => new Promise(res => fn(...args, (...vs) => res(...vs)));
  };
  
  // Exports
  module.exports = promisify;