empty.js

/**

 * @function empty
 * @description Returns the empty equivalent of the first argument
 */

export default function empty (x) {
  return new x.constructor()
};